File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -569,7 +569,7 @@ public function submitSolution(
569569
570570 if (!empty ($ entryPoint ) && !preg_match (self ::FILENAME_REGEX , $ entryPoint )) {
571571 $ message = sprintf ("Entry point '%s' contains illegal characters. " , $ entryPoint );
572- if ($ forceImportInvalid ) {
572+ if ($ forceImportInvalid || $ source === ' shadowing ' ) {
573573 $ importError = $ message ;
574574 } else {
575575 return null ;
@@ -610,7 +610,7 @@ public function submitSolution(
610610 }
611611 if (!preg_match (self ::FILENAME_REGEX , $ file ->getClientOriginalName ())) {
612612 $ message = sprintf ("Illegal filename '%s'. " , $ file ->getClientOriginalName ());
613- if ($ forceImportInvalid ) {
613+ if ($ forceImportInvalid || $ source === ' shadowing ' ) {
614614 $ importError = $ message ;
615615 } else {
616616 return null ;
@@ -647,7 +647,7 @@ public function submitSolution(
647647
648648 if ($ totalSize > $ sourceSize * 1024 ) {
649649 $ message = sprintf ("Submission file(s) are larger than %d kB. " , $ sourceSize );
650- if ($ forceImportInvalid ) {
650+ if ($ forceImportInvalid || $ source === ' shadowing ' ) {
651651 $ importError = $ message ;
652652 } else {
653653 return null ;
You can’t perform that action at this time.
0 commit comments