Skip to content

Commit

Permalink
Update Helper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel1948 committed Feb 22, 2017
1 parent 12e8376 commit ae15b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Helper.php
Expand Up @@ -176,7 +176,7 @@ public function getView()
*/
protected function _confirm($message, $okCode, $cancelCode = '', $options = [])
{
$message = str_replace('\n', "\n", json_encode($message));
$message = str_replace('\\\n', '\n', json_encode($message));
$confirm = "if (confirm({$message})) { {$okCode} } {$cancelCode}";
// We cannot change the key here in 3.x, but the behavior is inverted in this case
$escape = isset($options['escape']) && $options['escape'] === false;
Expand Down

0 comments on commit ae15b20

Please sign in to comment.