summaryrefslogtreecommitdiff
path: root/www/functions
diff options
context:
space:
mode:
Diffstat (limited to 'www/functions')
-rwxr-xr-xwww/functions/func_upload.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/www/functions/func_upload.php b/www/functions/func_upload.php
index 6f39ad3..e74e04f 100755
--- a/www/functions/func_upload.php
+++ b/www/functions/func_upload.php
@@ -182,7 +182,8 @@ function web_upload($db){
echo "no hyperlink";
return false;
}
- if(!preg_match("/^[a-zA-Z]+://", $url){
+
+ if(!preg_match("/^[a-zA-Z]+://", $url)){
$url = "http://".$url;
}
$file = file_get_contents($url);