From ec76c2c915ab02cbb06934c7dfeb109f00dcea3c Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Wed, 8 Jun 2016 15:45:58 +0200 Subject: over-engineering --- index.php | 44 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 9 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 4aed520..320e653 100644 --- a/index.php +++ b/index.php @@ -3,6 +3,9 @@
Date: Tue, 14 Jun 2016 13:15:10 +0200 Subject: submit name, some fixes --- inc/db.inc.php | 2 +- index.php | 20 ++++++++++++++------ interface.php | 1 + js/interface.js | 1 + server.rb | 4 ++++ util/run_all | 1 + 6 files changed, 22 insertions(+), 7 deletions(-) (limited to 'index.php') diff --git a/inc/db.inc.php b/inc/db.inc.php index 7356076..e023c3a 100644 --- a/inc/db.inc.php +++ b/inc/db.inc.php @@ -2,7 +2,7 @@ $SESSION_DIR="/srv/postedit/sessions"; $key = $_GET["key"]; -if (preg_match('/^[a-z0-9]{4}$/', $key)) { +if (preg_match('/^[a-z0-9]{1,4}$/', $key)) { $json = file_get_contents($SESSION_DIR."/".$key."/data.json"); } $db = json_decode($json); diff --git a/index.php b/index.php index 320e653..4b7e13c 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,13 @@