summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-15 08:45:15 +0300
committerAndrew Dolgov <[email protected]>2020-09-15 08:45:15 +0300
commit6c02fea641f042dfbdc25c744e7b80c590d714a9 (patch)
tree02d1cd3fd948ffde8fa801acf01d9c41aabfaaea /include
parent4abc7d78989d37702f02d67376520cfe447c6100 (diff)
validate_url: add clean()
Diffstat (limited to 'include')
-rw-r--r--include/functions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 776be432e..63b717701 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -1927,6 +1927,8 @@
function validate_url($url) {
+ $url = clean($url);
+
# fix protocol-relative URLs
if (strpos($url, "//") === 0)
$url = "https:" . $url;