Canonicalize the username.

        Patch by fu. 

diffs (19 lines):

diff -r 5ed22aacfa73 -r 22de99a4d38e htdocs/feeds/index.bml
--- a/htdocs/feeds/index.bml    Tue Jan 04 10:24:48 2011 +0800
+++ b/htdocs/feeds/index.bml    Tue Jan 04 10:36:32 2011 +0800
@@ -32,10 +32,14 @@ body<=
         $url =~ s/^feed://;           # eg, feed:http://www.example.com/
 
         if ($acct ne "") {
+            $acct = LJ::canonical_username( $acct );
+
             return $error->($ML{'.invalid.accountname'})
-                if $acct && $acct !~ /^\w{3,20}$/; # This needs to be 5 less 
then the username limt.
+                if ! $acct || $acct !~ /^\w{3,20}$/; # This needs to be 5 less 
then the username limt.
+
             return $error->( $ML{'.invalid.reserved'} )
                 if LJ::User->is_protected_username( $acct );
+
             # Postpend _feed here, username should be valid by this point.
             $acct .= "_feed";
         }
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to