X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FMason.pm;h=63eb47cabaf04d74cb02504b79313d293604d75e;hb=bbd0138791eaf4a7a64448418dee176721e6067b;hp=6cc32bd0439c2ad43d2df8b91ba4619b532a10e0;hpb=1eb6d8a1549dfcedd122116541df36869f177bf6;p=freeside.git diff --git a/FS/FS/Mason.pm b/FS/FS/Mason.pm index 6cc32bd04..63eb47cab 100644 --- a/FS/FS/Mason.pm +++ b/FS/FS/Mason.pm @@ -546,6 +546,8 @@ sub mason_interps { ${$_[0]} =~ s/(['\\])/\\$1/g; ${$_[0]} =~ s/\r/\\r/g; ${$_[0]} =~ s/\n/\\n/g; + # prevent premature termination of the script + ${$_[0]} =~ s[][<\\/script>]ig; ${$_[0]} = "'". ${$_[0]}. "'"; };