aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_convert.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-01-01 11:54:37 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-01-01 11:54:37 +0100
commitbf5f11e11ac0f25441ba891fc16d5a780e4450e2 (patch)
tree12aa20249ca31f91fa3c8ab6795a2bce6f55f3a4 /phpBB/includes/functions_convert.php
parent0ff5f9fa0edf9ac3125cc4e871609a90cee1cfac (diff)
parentf7d387f93c421e93ef13375bd5e0fb408e921598 (diff)
downloadforums-bf5f11e11ac0f25441ba891fc16d5a780e4450e2.tar
forums-bf5f11e11ac0f25441ba891fc16d5a780e4450e2.tar.gz
forums-bf5f11e11ac0f25441ba891fc16d5a780e4450e2.tar.bz2
forums-bf5f11e11ac0f25441ba891fc16d5a780e4450e2.tar.xz
forums-bf5f11e11ac0f25441ba891fc16d5a780e4450e2.zip
Merge branch 'ticket/security/211' into ticket/security/211-rhea
Diffstat (limited to 'phpBB/includes/functions_convert.php')
-rw-r--r--phpBB/includes/functions_convert.php2
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;
}