diff options
| author | Andrew Dolgov <noreply@fakecake.org> | 2020-09-15 08:45:15 +0300 |
|---|---|---|
| committer | Andrew Dolgov <noreply@fakecake.org> | 2020-09-15 08:45:15 +0300 |
| commit | 6c02fea641f042dfbdc25c744e7b80c590d714a9 (patch) | |
| tree | 02d1cd3fd948ffde8fa801acf01d9c41aabfaaea | |
| parent | 4abc7d78989d37702f02d67376520cfe447c6100 (diff) | |
validate_url: add clean()
| -rw-r--r-- | include/functions.php | 2 |
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; |