diff options
author | Michal Čihař <michal@cihar.com> | 2016-07-22 13:19:35 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2016-07-22 13:19:35 +0300 |
commit | 67b538efc3e480168c8377e4bf2390120a914c07 (patch) | |
tree | 1fab3ec31f2213add795519dc981c2ee7871606b /url.php | |
parent | 5d1a6af96f91a14c91e6a5d3ba3b1e0af5f43769 (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.php | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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']) |