Skip to content

Commit

Permalink
(Bug 4666) Fix expected URL for textcaptcha
Browse files Browse the repository at this point in the history
We want /exampleuseranme/__rpc_captcha, not just /__rpc_captcha
  • Loading branch information
afuna committed Sep 23, 2012
1 parent 0e41ad8 commit c023f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cgi-bin/DW/Controller/RPC/TextCAPTCHA.pm
Expand Up @@ -23,7 +23,7 @@ use DW::Routing;
use JSON;
use DW::Captcha::textCAPTCHA;

DW::Routing->register_regex( '^/__rpc_captcha/(.*)$', \&captcha_handler, app => 1, user => 1, format => 'html', formats => [qw( html json )] );
DW::Routing->register_regex( '^/[^/]+/__rpc_captcha/(.*)$', \&captcha_handler, app => 1, user => 1, format => 'html', formats => [qw( html json )] );
DW::Routing->register_regex( '^/captcha/text/(.*)$', \&iframe_captcha_handler, app => 1, format => 'html' );

# loaded inline into the page using JS
Expand Down

0 comments on commit c023f7e

Please sign in to comment.