Send standard set of HTTP headers on redirect
Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
5d1a6af96f
commit
67b538efc3
5
url.php
5
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'])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user