diff --git a/web/app/controllers/new_remote_problem.php b/web/app/controllers/new_remote_problem.php index 3ab1497..6af5b90 100644 --- a/web/app/controllers/new_remote_problem.php +++ b/web/app/controllers/new_remote_problem.php @@ -28,8 +28,8 @@ $new_remote_problem_form->addInput('remote_problem_id', [ } else if ($remote_oj === 'atcoder') { $id = trim(strtolower($id)); - if (!validateString($id)) { - return '不合法的题目 ID'; + if (!validateAtCoderProblemId($id)) { + return '不合法的字符串'; } $vdata['remote_problem_id'] = $id; @@ -149,10 +149,10 @@ $new_remote_problem_form->runAtServer();
GYM
)