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:10:11 +0300
committerMichal Čihař <michal@cihar.com>2016-07-22 13:10:11 +0300
commit1d70a1ba64f4bace7a15aa3f153abc81fde4881c (patch)
treecfb619543d43478776c40338101d26ec73fe0e07 /url.php
parent23695db151b7c45522ad627319ea83b9de5e8577 (diff)
Allow only https outgoing links
We no longer produce http links, so it's better to filter out these at all levels. Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'url.php')
-rw-r--r--url.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/url.php b/url.php
index c12ceb9211..41896f23b5 100644
--- a/url.php
+++ b/url.php
@@ -17,7 +17,7 @@ require_once './libraries/common.inc.php';
require_once './libraries/js_escape.lib.php';
if (! PMA_isValid($_REQUEST['url'])
- || ! preg_match('/^https?:\/\/[^\n\r]*$/', $_REQUEST['url'])
+ || ! preg_match('/^https:\/\/[^\n\r]*$/', $_REQUEST['url'])
|| ! PMA_isAllowedDomain($_REQUEST['url'])
) {
PMA_sendHeaderLocation('./');