Smarty_Compiler.class.php

This commit is contained in:
messju
2004-04-16 07:53:37 +00:00
parent d85cbe84ec
commit 729ebe26ed
10 changed files with 46 additions and 20 deletions

View File

@@ -99,7 +99,9 @@ function smarty_function_popup($params, &$smarty)
if (empty($trigger)) { $trigger = "onmouseover"; }
$retval = $trigger . '="return overlib(\''.preg_replace(array("!'!","![\r\n]!"),array("\'",'\r'),$text).'\'';
$retval = $trigger . '="' . htmlspecialchars(
'return overlib(\''.preg_replace(array("!'!","![\r\n]!"),
array("\'",'\r'),$text).'\'');
$retval .= $append . ');" onmouseout="nd();"';
return $retval;