aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--boca-1.5.2/doc/changelog.txt1
-rw-r--r--boca-1.5.2/src/team/run.php4
-rw-r--r--boca-1.5.2/tools/icpc.etc.tgzbin9493 -> 9493 bytes
3 files changed, 5 insertions, 0 deletions
diff --git a/boca-1.5.2/doc/changelog.txt b/boca-1.5.2/doc/changelog.txt
index 83e837a..07684d4 100644
--- a/boca-1.5.2/doc/changelog.txt
+++ b/boca-1.5.2/doc/changelog.txt
@@ -3,6 +3,7 @@ version 1.5.2:
- improve description of inbetween warmup and contest in ADMIN.txt
- fix a bug that could allow an user to change their username
- creation of an APACHE.txt doc about setting up apache configuration
+- force source files to have no spaces (warn a message in case they have)
version 1.5.1:
2012/10/20:
diff --git a/boca-1.5.2/src/team/run.php b/boca-1.5.2/src/team/run.php
index 3879674..270a672 100644
--- a/boca-1.5.2/src/team/run.php
+++ b/boca-1.5.2/src/team/run.php
@@ -38,6 +38,10 @@ if (isset($_FILES["sourcefile"]) && isset($_POST["problem"]) && isset($_POST["Su
MSGError("File size exceeds the limit allowed.");
ForceLoad($runteam);
}
+ if(strpos($name,' ') === true || strpos($temp,' ') === true) {
+ MSGError("File name cannot contain spaces.");
+ ForceLoad($runteam);
+ }
if (!is_uploaded_file($temp) || strlen($name)>100) {
IntrusionNotify("file upload problem.");
ForceLoad("../index.php");
diff --git a/boca-1.5.2/tools/icpc.etc.tgz b/boca-1.5.2/tools/icpc.etc.tgz
index 5b5d8c0..f537585 100644
--- a/boca-1.5.2/tools/icpc.etc.tgz
+++ b/boca-1.5.2/tools/icpc.etc.tgz
Binary files differ