Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2013-07-11 22:33:09 +0400
committerMadhura Jayaratne <madhura.cj@gmail.com>2013-07-11 22:33:09 +0400
commit6f1f272a12df5e39bd40fd5957f58f2c4d5b1185 (patch)
tree7bddc140e4344d540a11a9ebc929787c7b009eb7 /setup
parente651c7aaf2add2129362bbd7154ef91b00b1ba43 (diff)
parentde3cc341a0ebc3ee6064c8312f12501daeedd93e (diff)
Merge pull request #493 from ayushchd/unit_testing
Tests for setup/lib* and user_prefs*
Diffstat (limited to 'setup')
-rw-r--r--setup/lib/form_processing.lib.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/setup/lib/form_processing.lib.php b/setup/lib/form_processing.lib.php
index d9b6e6aea3..65ebb1db2e 100644
--- a/setup/lib/form_processing.lib.php
+++ b/setup/lib/form_processing.lib.php
@@ -21,7 +21,10 @@ function process_formset(FormDisplay $form_display)
// drop post data
header('HTTP/1.1 303 See Other');
header('Location: index.php');
- exit;
+
+ if (!defined('TESTSUITE')) {
+ exit;
+ }
}
if (!$form_display->process(false)) {
// handle form view and failed POST
@@ -55,7 +58,9 @@ function process_formset(FormDisplay $form_display)
// drop post data
header('HTTP/1.1 303 See Other');
header('Location: index.php');
- exit;
+ if (!defined('TESTSUITE')) {
+ exit;
+ }
}
}
}