fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-08-19 03:02 am

[dw-free] /cgi-bin/DW/Controller/Legal.pm should register "/legal/index" not "/legal&

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

http://bugs.dwscoalition.org/show_bug.cgi?id=3828

Make /legal, /legal/, /legal/index, all work.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/DW/Controller/Legal.pm
--------------------------------------------------------------------------------
diff -r d4e639603f3f -r e21f46b12510 cgi-bin/DW/Controller/Legal.pm
--- a/cgi-bin/DW/Controller/Legal.pm	Tue Aug 16 09:54:01 2011 +0800
+++ b/cgi-bin/DW/Controller/Legal.pm	Fri Aug 19 11:02:25 2011 +0800
@@ -35,7 +35,7 @@
 }
 
 # register the index view
-DW::Routing->register_string( '/legal/', \&index_handler, app => 1 );
+DW::Routing->register_string( '/legal/index', \&index_handler, app => 1 );
 
 sub index_handler {
     return DW::Template->render_template( 'legal/index.tt', $args );
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org