diff options
author | johndoh <roundcube@tehinterweb.co.uk> | 2021-01-23 12:15:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-23 12:15:09 +0300 |
commit | 1eebfd723bc6706d76c280dbeaf708d4ba8f010d (patch) | |
tree | d344e37c7e607b7b2934cab5777ca7a48699b28f /program/include/rcmail.php | |
parent | 5d2668a260098e70e4666a60c3c71738b8c7ac3d (diff) |
Improve detection of external urls for redirect (#7823)
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r-- | program/include/rcmail.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php index 8246510d5..92cf70c03 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -1032,7 +1032,7 @@ class rcmail extends rcube public function url($p, $absolute = false, $full = false, $secure = false) { if (!is_array($p)) { - if (strpos($p, 'http') === 0) { + if (preg_match('#^https?://#', $p)) { return $p; } |