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 9a1d0cd commit 75ec33bCopy full SHA for 75ec33b
webapp/src/Service/ExternalContestSourceService.php
@@ -529,7 +529,8 @@ protected function loadContest(): void
529
case ExternalContestSource::TYPE_CCS_API:
530
try {
531
// The base URL is the URL of the CCS API root.
532
- if (preg_match('/^(.*\/)contests\/.*/',
+ // Proper is '^(.*\/)contests\/.*/', but PC^2 doesn't expose this (yet).
533
+ if (preg_match('/^(.*\/)contest(s\/.*)/',
534
$this->source->getSource(), $matches) === 0) {
535
$this->loadingError = 'Cannot determine base URL. Did you pass a CCS API contest URL?';
536
$this->cachedContestData = null;
0 commit comments