]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/util.php
Merge branch 'case-sensitive-openid' into 'master'
[quix0rs-gnu-social.git] / lib / util.php
index a177c92a25091499d4de28b467a6969e08488643..62db64d82873a335ab8f8877529f5d516f760948 100644 (file)
@@ -1885,6 +1885,10 @@ function common_log_objstring(&$object)
 
 function common_valid_http_url($url, $secure=false)
 {
+    if (empty($url)) {
+        return false;
+    }
+
     // If $secure is true, only allow https URLs to pass
     // (if false, we use '?' in 'https?' to say the 's' is optional)
     $regex = $secure ? '/^https$/' : '/^https?$/';