apparently not only regex 'https?' urls are sent

This commit is contained in:
Mikael Nordfeldth 2014-01-01 19:44:02 +01:00
parent b81d7c425d
commit df43684196
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ class ApiOAuthRequestTokenAction extends ApiOAuthAction
return true;
} else {
return common_valid_http_url($callback);
return filter_var($callback, FILTER_VALIDATE_URL);
}
}
}