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=c28831570044493bb6b09ccda2efd988946b3e02;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); } } }