summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-06-13 20:51:11 -0700
committerBharat Mediratta <bharat@menalto.com>2010-06-13 20:51:11 -0700
commit793780daa7665f7f86994235c4263fcb63554eb8 (patch)
tree86c8eab7416bd3691ad74dda8736191746c0d550
parent6f443a819b360a89c53004d3bf860fcedd88ae2e (diff)
Replace __CSRF__ with the actual csrf token.
-rw-r--r--modules/gallery/helpers/message.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/helpers/message.php b/modules/gallery/helpers/message.php
index 047eb2c7..1f69e2a9 100644
--- a/modules/gallery/helpers/message.php
+++ b/modules/gallery/helpers/message.php
@@ -78,6 +78,7 @@ class message_Core {
$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) {