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
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2016-07-22 13:19:35 +0300
committerMichal Čihař <michal@cihar.com>2016-07-22 13:19:35 +0300
commit67b538efc3e480168c8377e4bf2390120a914c07 (patch)
tree1fab3ec31f2213add795519dc981c2ee7871606b /url.php
parent5d1a6af96f91a14c91e6a5d3ba3b1e0af5f43769 (diff)
Send standard set of HTTP headers on redirect
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'url.php')
-rw-r--r--url.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/url.php b/url.php
index 41896f23b5..60b0f7d67d 100644
--- a/url.php
+++ b/url.php
@@ -16,6 +16,11 @@ require_once './libraries/common.inc.php';
*/
require_once './libraries/js_escape.lib.php';
+// Only output the http headers
+$response = PMA\libraries\Response::getInstance();
+$response->getHeader()->sendHttpHeaders();
+$response->disable();
+
if (! PMA_isValid($_REQUEST['url'])
|| ! preg_match('/^https:\/\/[^\n\r]*$/', $_REQUEST['url'])
|| ! PMA_isAllowedDomain($_REQUEST['url'])