From a7afe53942d4d83a86e986614ec5b9380f8648f3 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 28 Apr 2014 22:33:51 +0200 Subject: Forgot to commit something... --- www/functions/func_upload.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'www/functions/func_upload.php') 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); -- cgit v1.2.3