From 6c02fea641f042dfbdc25c744e7b80c590d714a9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 15 Sep 2020 08:45:15 +0300 Subject: validate_url: add clean() --- include/functions.php | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3