X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapigroupprofileupdate.php;h=05fd3ab57f7498ee43c1efd586fbf59c8387fd49;hb=8912cdc7a4acaeaea3b2b323efc86333ffd5ef63;hp=73b3823e365bd380bc1da930b79c2114948d1776;hpb=2c0790be54ad8c9e32e6a899ab322b77fd415b12;p=quix0rs-gnu-social.git diff --git a/actions/apigroupprofileupdate.php b/actions/apigroupprofileupdate.php index 73b3823e36..05fd3ab57f 100644 --- a/actions/apigroupprofileupdate.php +++ b/actions/apigroupprofileupdate.php @@ -267,13 +267,8 @@ class ApiGroupProfileUpdateAction extends ApiAuthAction function validateHomepage() { if (!is_null($this->homepage) - && (strlen($this->homepage) > 0) - && !Validate::uri( - $this->homepage, - array('allowed_schemes' => array('http', 'https') - ) - ) - ) { + && (strlen($this->homepage) > 0) + && !common_valid_http_url($this->homepage)) { throw new ApiValidationException( // TRANS: API validation exception thrown when homepage URL does not validate. _('Homepage is not a valid URL.')