summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-06-14 13:15:10 +0200
committerPatrick Simianer <p@simianer.de>2016-06-14 13:15:10 +0200
commit1a51b3797d4c3a846e47b105a5edcb8283726651 (patch)
treeb30146cb3165a49d35b05a8e11c133b98ff7a597 /inc
parent8aff80ee4f5a3cb3627e88b95a32921e7e8d7f84 (diff)
submit name, some fixes
Diffstat (limited to 'inc')
-rw-r--r--inc/db.inc.php2
1 files changed, 1 insertions, 1 deletions
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);