Check whether these are equal first; if not, then try to unescape the 
incoming URL and check again.

        Patch by kareila. 

diffs (13 lines):

diff -r 188c1afc510d -r 4625af29e22c htdocs/misc/hubbub.bml
--- a/htdocs/misc/hubbub.bml    Tue Oct 05 11:51:43 2010 +0800
+++ b/htdocs/misc/hubbub.bml    Tue Oct 05 11:56:27 2010 +0800
@@ -85,7 +85,8 @@ _c?><?_code
     # if the topic url doesn't match, then that's a terrible thing and we're 
not sure
     # why, so log extra information
     return $err->( 'topic_url mismatch: db=' . $topicurldb . ', hub=' . 
$topicurl )
-        unless lc unescape( $topicurl ) eq lc $topicurldb;
+        unless lc $topicurl eq lc $topicurldb ||
+               lc unescape( $topicurl ) eq lc $topicurldb;
 
     # validate the user is still valid (didn't get suspended or anything)
     my $u = LJ::load_userid( $uid ) or return $fail->( 'failed to load user' );
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to