]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apiaccountregister.php
Validate::uri replaced with filter_var for HTTP[S] URL checks
[quix0rs-gnu-social.git] / actions / apiaccountregister.php
index fec536a2c204466ec90edfdeaa8a1c096f8cc897..7d038b20dc2cf806ed460599dcb83992d10ecb28 100644 (file)
@@ -152,9 +152,7 @@ class ApiAccountRegisterAction extends ApiAction
                 // TRANS: Form validation error displayed when trying to register with an already registered e-mail address.
                    $this->clientError(_('Email address already exists.'),404,'json');  
             } else if (!is_null($homepage) && (strlen($homepage) > 0) &&
-                       !Validate::uri($homepage,
-                                      array('allowed_schemes' =>
-                                            array('http', 'https')))) {
+                       !common_valid_http_url($homepage)) {
                 // TRANS: Form validation error displayed when trying to register with an invalid homepage URL.
                    $this->clientError(_('Homepage is not a valid URL.'),404,'json');   
                 return;