From f57095e878fa0c3ecb6192bca1d19f9fef89508c Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Wed, 8 Jun 2016 16:20:22 +0200 Subject: somewhat more secure --- inc/db.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/db.inc.php b/inc/db.inc.php index ed45f7b..7356076 100644 --- a/inc/db.inc.php +++ b/inc/db.inc.php @@ -1,7 +1,10 @@ -- cgit v1.2.3 From 8aff80ee4f5a3cb3627e88b95a32921e7e8d7f84 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Wed, 8 Jun 2016 16:32:53 +0200 Subject: fix help --- inc/help.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'inc') diff --git a/inc/help.inc.php b/inc/help.inc.php index c29d989..86ddf70 100644 --- a/inc/help.inc.php +++ b/inc/help.inc.php @@ -1,5 +1,6 @@ -
Press the 'Next' button to submit your post-edit and to request the next segment for post-edition. -In the textual interface, you may just press return when the post-edit is finished (and 'Target' text area is in focus).
+Press the 'Next' button to submit your translation or post-edit and to request the next segment for post-edition. + +
The session can be paused at any time and continued later -- just press 'Pause'. Note that we are collecting timing information, so pausing your session on inactivity is important for us. You may also just reload this site upon your return and re-request the segment to reset the timer.
-- cgit v1.2.3 From 1a51b3797d4c3a846e47b105a5edcb8283726651 Mon Sep 17 00:00:00 2001 From: Patrick SimianerDate: 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 'inc') 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 @@