From d94cacb7211a1a60f2dccbfee08a739126c0c673 Mon Sep 17 00:00:00 2001 From: mohrt Date: Wed, 11 Dec 2002 14:59:25 +0000 Subject: [PATCH] fix error in newline code --- libs/plugins/function.popup.php | 2 +- plugins/function.popup.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/plugins/function.popup.php b/libs/plugins/function.popup.php index 3ce7bb6b..be88ad9b 100644 --- a/libs/plugins/function.popup.php +++ b/libs/plugins/function.popup.php @@ -19,7 +19,7 @@ function smarty_function_popup($params, &$smarty) if (empty($trigger)) { $trigger = "onMouseOver"; } - echo $trigger.'="return overlib(\''.preg_replace(array("!'!","![\r\n]+!"),array("\'",'\r'),$text).'\''; + echo $trigger.'="return overlib(\''.preg_replace(array("!'!","![\r\n]!"),array("\'",'\r'),$text).'\''; if ($sticky) { echo ",STICKY"; } if (!empty($caption)) { echo ",CAPTION,'".str_replace("'","\'",$caption)."'"; } if (!empty($fgcolor)) { echo ",FGCOLOR,'$fgcolor'"; } diff --git a/plugins/function.popup.php b/plugins/function.popup.php index 3ce7bb6b..be88ad9b 100644 --- a/plugins/function.popup.php +++ b/plugins/function.popup.php @@ -19,7 +19,7 @@ function smarty_function_popup($params, &$smarty) if (empty($trigger)) { $trigger = "onMouseOver"; } - echo $trigger.'="return overlib(\''.preg_replace(array("!'!","![\r\n]+!"),array("\'",'\r'),$text).'\''; + echo $trigger.'="return overlib(\''.preg_replace(array("!'!","![\r\n]!"),array("\'",'\r'),$text).'\''; if ($sticky) { echo ",STICKY"; } if (!empty($caption)) { echo ",CAPTION,'".str_replace("'","\'",$caption)."'"; } if (!empty($fgcolor)) { echo ",FGCOLOR,'$fgcolor'"; }