mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-09-03 10:46 pm

[dw-free] The parameter is URL escaped. Fix.

[commit: http://hg.dwscoalition.org/dw-free/rev/6d723288b164]

The parameter is URL escaped. Fix.

Patch by [staff profile] mark.

Files modified:
  • htdocs/misc/hubbub.bml
--------------------------------------------------------------------------------
diff -r b2c0b0b8bf11 -r 6d723288b164 htdocs/misc/hubbub.bml
--- a/htdocs/misc/hubbub.bml	Thu Sep 03 21:58:25 2009 +0000
+++ b/htdocs/misc/hubbub.bml	Thu Sep 03 22:46:30 2009 +0000
@@ -63,6 +63,7 @@ _c?><?_code
     # now figure out what they want
     my ( $topicurl, $leasetime, $verifytoken, $challenge ) =
         map { $GET{$_} } qw/ hub.topic hub.lease_seconds hub.verify_token hub.challenge /;
+    $topicurl = LJ::durl( $topicurl );
 
     # sanity check the hub
     return $err->( 'invalid topic' ) unless $topicurl =~ /^https?:/;
--------------------------------------------------------------------------------