diff --git a/driver-testsuite/web-fixtures/advanced_form_post.php b/driver-testsuite/web-fixtures/advanced_form_post.php index 755806dc6..dda1ee383 100644 --- a/driver-testsuite/web-fixtures/advanced_form_post.php +++ b/driver-testsuite/web-fixtures/advanced_form_post.php @@ -14,10 +14,13 @@ $_POST['agreement'] = isset($_POST['agreement']) ? 'on' : 'off'; ksort($_POST); -echo str_replace('>', '', var_export($_POST, true)) . "\n"; +foreach ($_POST as $key => $value) { + $post_for_printing[htmlspecialchars($key, ENT_QUOTES, 'UTF-8')] = htmlspecialchars(var_export($value, TRUE), ENT_QUOTES, 'UTF-8'); +} +echo str_replace('>', '', var_export($post_for_printing, true)) . "\n"; if (isset($_FILES['about']) && file_exists($_FILES['about']['tmp_name'])) { - echo $_FILES['about']['name'] . "\n"; - echo file_get_contents($_FILES['about']['tmp_name']); + echo htmlspecialchars($_FILES['about']['name'], ENT_QUOTES, 'UTF-8') . "\n"; + echo htmlspecialchars(file_get_contents($_FILES['about']['tmp_name'], ENT_QUOTES, 'UTF-8')); } else { echo "no file"; } diff --git a/driver-testsuite/web-fixtures/basic_form_post.php b/driver-testsuite/web-fixtures/basic_form_post.php index 8a5e340ef..751b27684 100644 --- a/driver-testsuite/web-fixtures/basic_form_post.php +++ b/driver-testsuite/web-fixtures/basic_form_post.php @@ -5,9 +5,8 @@
-