forked from GNUsocial/gnu-social
Further static declarations of functions
Validate could probably be replaced with filter_var if desired (PHP>=5.2.0)
This commit is contained in:
@@ -203,7 +203,8 @@ class PushHubAction extends Action
|
||||
$url = $this->arg($arg);
|
||||
$params = array('domain_check' => false, // otherwise breaks my local tests :P
|
||||
'allowed_schemes' => array('http', 'https'));
|
||||
if (Validate::uri($url, $params)) {
|
||||
$validate = new Validate;
|
||||
if ($validate->uri($url, $params)) {
|
||||
return $url;
|
||||
} else {
|
||||
// TRANS: Client exception.
|
||||
|
Reference in New Issue
Block a user