Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohndoh <roundcube@tehinterweb.co.uk>2021-01-23 12:15:09 +0300
committerGitHub <noreply@github.com>2021-01-23 12:15:09 +0300
commit1eebfd723bc6706d76c280dbeaf708d4ba8f010d (patch)
treed344e37c7e607b7b2934cab5777ca7a48699b28f /program/include/rcmail.php
parent5d2668a260098e70e4666a60c3c71738b8c7ac3d (diff)
Improve detection of external urls for redirect (#7823)
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php2
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;
}