From 4115f889605c8ceec12dea4029b90f875e18df63 Mon Sep 17 00:00:00 2001 From: Saqib Razzaq Date: Mon, 7 Mar 2016 04:04:45 -0800 Subject: [PATCH] fixed : invalid url provided --- upload/includes/functions_user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload/includes/functions_user.php b/upload/includes/functions_user.php index c36f17b2..35fb1c84 100644 --- a/upload/includes/functions_user.php +++ b/upload/includes/functions_user.php @@ -65,7 +65,7 @@ function profile_fileds_check($array) } } - if (!empty($array['web_url']) && !filter_var($array['web_url'], FILTER_VALIDATE_URL)) + if (empty($array['web_url']) || is_numeric($array['web_url']) ) { e('Invalid URL provided.'); $post_clean = false;