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 60793b4 commit a5cf337Copy full SHA for a5cf337
webapp/src/Service/ExternalContestSourceService.php
@@ -522,7 +522,8 @@ 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
- if (preg_match('/^(.*\/)contests\/.*/',
+ // Proper is '^(.*\/)contests\/.*/', but PC^2 doesn't expose this (yet).
526
+ if (preg_match('/^(.*\/)contest(s\/.*)?/',
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