A colleague of mine just encountered a problem where the JS failed because not all new line characters were replaced. I think to fix this the following change has to be made:
if ($messages !== '') {
$template->hasMessages = true;
- $template->messages = str_replace(array("\n", "'"), array('', '\''), $messages);
+ $template->messages = str_replace(array("\n", "\r", "'"), array('', '', '\''), $messages);
}
https://github.com/isotope/core/blob/master/system/modules/isotope/library/Isotope/Frontend.php#L337
What do you think?
A colleague of mine just encountered a problem where the JS failed because not all new line characters were replaced. I think to fix this the following change has to be made:
if ($messages !== '') { $template->hasMessages = true; - $template->messages = str_replace(array("\n", "'"), array('', '\''), $messages); + $template->messages = str_replace(array("\n", "\r", "'"), array('', '', '\''), $messages); }https://github.com/isotope/core/blob/master/system/modules/isotope/library/Isotope/Frontend.php#L337
What do you think?