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