From: Mikael Nordfeldth Date: Wed, 1 Jan 2014 18:44:02 +0000 (+0100) Subject: apparently not only regex 'https?' urls are sent X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=df43684196b7156701e0a7df99de622d3f62ed7e;p=quix0rs-gnu-social.git apparently not only regex 'https?' urls are sent --- diff --git a/actions/apioauthrequesttoken.php b/actions/apioauthrequesttoken.php index 083bbc3756..e961f4f464 100644 --- a/actions/apioauthrequesttoken.php +++ b/actions/apioauthrequesttoken.php @@ -146,7 +146,7 @@ class ApiOAuthRequestTokenAction extends ApiOAuthAction return true; } else { - return common_valid_http_url($callback); + return filter_var($callback, FILTER_VALIDATE_URL); } } }