From df43684196b7156701e0a7df99de622d3f62ed7e Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 1 Jan 2014 19:44:02 +0100 Subject: [PATCH] apparently not only regex 'https?' urls are sent --- actions/apioauthrequesttoken.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } }