Skip to content

Commit

Permalink
Replace __CSRF__ with the actual csrf token.
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Jun 14, 2010
1 parent 6f443a8 commit 793780d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/gallery/helpers/message.php
Expand Up @@ -78,6 +78,7 @@ static function get() {

$messages = Session::instance()->get_once("messages", array());
foreach ($messages as $msg) {
$msg[0] = str_replace("__CSRF__", access::csrf_token(), $msg[0]);
$buf[] = "<li class=\"" . self::severity_class($msg[1]) . "\">$msg[0]</li>";
}
if ($buf) {
Expand Down

0 comments on commit 793780d

Please sign in to comment.