]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't validate listenee URI
authorEvan Prodromou <evan@prodromou.name>
Thu, 5 Jun 2008 03:39:11 +0000 (23:39 -0400)
committerEvan Prodromou <evan@prodromou.name>
Thu, 5 Jun 2008 03:39:11 +0000 (23:39 -0400)
Validation of the listenee URI was failing for tag: URIs. So,
abandoned validation for now. Maybe in the future I'll add it back in,
with a second check for a valid tag URI if it doesn't work.

darcs-hash:20080605033911-84dde-0cf77fad66198a790450183eba11028e153f43d1.gz

actions/userauthorization.php

index 3c48428bc598d25a6d6ae7a3886bf6d318c1993b..a6dc2a5b07780b326d810b2530dc466a05df529b 100644 (file)
@@ -365,9 +365,7 @@ class UserauthorizationAction extends Action {
                        throw new OAuthException("Listener URI '$listener' not found here");
                }
                $listenee = $req->get_parameter('omb_listenee');
-               if (!Validate::uri($listenee)) {
-                       throw new OAuthException("Listenee URI '$listenee' not a valid URI");
-               } else if (strlen($listenee) > 255) {
+               if (strlen($listenee) > 255) {
                        throw new OAuthException("Listenee URI '$listenee' too long");
                }
                $nickname = $req->get_parameter('omb_listenee_nickname');