We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0778924 commit 0ba5cf5Copy full SHA for 0ba5cf5
webapp/src/Service/ExternalContestSourceService.php
@@ -522,8 +522,7 @@ protected function loadContest(): void
522
case ExternalContestSource::TYPE_CCS_API:
523
try {
524
// The base URL is the URL of the CCS API root.
525
- // Proper is '^(.*\/)contests\/.*/', but PC^2 doesn't expose this (yet).
526
- if (preg_match('/^(.*\/)contest(s\/.*)?/',
+ if (preg_match('/^(.*\/)contests\/.*/',
527
$this->source->getSource(), $matches) === 0) {
528
$this->loadingError = 'Cannot determine base URL. Did you pass a CCS API contest URL?';
529
$this->cachedContestData = null;
0 commit comments