File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -567,7 +567,7 @@ public function submitSolution(
567
567
$ entryPoint = null ;
568
568
}
569
569
570
- if (!empty ($ entryPoint ) && !preg_match (self ::FILENAME_REGEX , $ entryPoint )) {
570
+ if ($ source !== ' shadowing ' && !empty ($ entryPoint ) && !preg_match (self ::FILENAME_REGEX , $ entryPoint )) {
571
571
$ message = sprintf ("Entry point '%s' contains illegal characters. " , $ entryPoint );
572
572
if ($ forceImportInvalid ) {
573
573
$ importError = $ message ;
@@ -608,7 +608,7 @@ public function submitSolution(
608
608
$ message = sprintf ("File '%s' not found (or not readable). " , $ file ->getRealPath ());
609
609
return null ;
610
610
}
611
- if (!preg_match (self ::FILENAME_REGEX , $ file ->getClientOriginalName ())) {
611
+ if ($ source !== ' shadowing ' && !preg_match (self ::FILENAME_REGEX , $ file ->getClientOriginalName ())) {
612
612
$ message = sprintf ("Illegal filename '%s'. " , $ file ->getClientOriginalName ());
613
613
if ($ forceImportInvalid ) {
614
614
$ importError = $ message ;
@@ -645,7 +645,7 @@ public function submitSolution(
645
645
}
646
646
}
647
647
648
- if ($ totalSize > $ sourceSize * 1024 ) {
648
+ if ($ source !== ' shadowing ' && $ totalSize > $ sourceSize * 1024 ) {
649
649
$ message = sprintf ("Submission file(s) are larger than %d kB. " , $ sourceSize );
650
650
if ($ forceImportInvalid ) {
651
651
$ importError = $ message ;
You can’t perform that action at this time.
0 commit comments