Skip to content

Commit

Permalink
oops. fixed Web::CSRFDefender
Browse files Browse the repository at this point in the history
  • Loading branch information
tokuhirom committed Dec 8, 2010
1 parent c63dd8b commit 3ab36c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Amon2/Plugin/Web/CSRFDefender.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package Amon2::Plugin::Web::CSRFDefender;
use strict;
use warnings;
use String::Random qw/random_regex/;
use Amon2::Util ();

our $ERROR_HTML = <<'...';
<!doctype html>
Expand Down Expand Up @@ -60,7 +61,7 @@ sub init {
}
);
}
Amon::Util::add_method($c, 'validate_csrf', \&validate_csrf);
Amon2::Util::add_method($c, 'validate_csrf', \&validate_csrf);
}

sub validate_csrf {
Expand Down

0 comments on commit 3ab36c2

Please sign in to comment.