diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2018-01-07 10:28:59 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2018-01-07 10:28:59 +0100 |
| commit | 2a939fa779059b2eedc5eaf33706b4a1627ed30e (patch) | |
| tree | 12aa20249ca31f91fa3c8ab6795a2bce6f55f3a4 /phpBB/includes/functions_convert.php | |
| parent | 39b142077478876b4c2ef270c081681070f264d7 (diff) | |
| parent | bf5f11e11ac0f25441ba891fc16d5a780e4450e2 (diff) | |
| download | forums-2a939fa779059b2eedc5eaf33706b4a1627ed30e.tar forums-2a939fa779059b2eedc5eaf33706b4a1627ed30e.tar.gz forums-2a939fa779059b2eedc5eaf33706b4a1627ed30e.tar.bz2 forums-2a939fa779059b2eedc5eaf33706b4a1627ed30e.tar.xz forums-2a939fa779059b2eedc5eaf33706b4a1627ed30e.zip | |
Merge pull request #41 from phpbb/ticket/security/211-rhea
[ticket/security/211] Rhea version of security fix
Diffstat (limited to 'phpBB/includes/functions_convert.php')
| -rw-r--r-- | phpBB/includes/functions_convert.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_convert.php b/phpBB/includes/functions_convert.php index 176e3dd6de..4eaad6b339 100644 --- a/phpBB/includes/functions_convert.php +++ b/phpBB/includes/functions_convert.php @@ -249,7 +249,7 @@ function validate_website($url) { return ''; } - else if (!preg_match('#^[a-z0-9]+://#i', $url) && strlen($url) > 0) + else if (!preg_match('#^http[s]?://#i', $url) && strlen($url) > 0) { return 'http://' . $url; } |
