fixed issue with setToken injecting a /n

This commit is contained in:
Jonathan Labreuille
2015-08-21 15:02:24 +02:00
parent 311acd1ee0
commit c473338d19
2 changed files with 3 additions and 4 deletions

View File

@ -32,7 +32,7 @@ class Router {
function setToken() {
$global = '<script type="text/javascript">';
$global .= 'var mailpoet_token = "'.Security::generateToken().'";';
$global .= "</script>/n";
$global .= "</script>";
echo $global;
}