From ac1973d8ab3daa49a77a60980e5a2ee1160d37dc Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 20 Jul 2006 05:36:16 +0000 Subject: [PATCH] Updated regex git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4245 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/smarty/plugins/block.render.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/smarty/plugins/block.render.php b/include/smarty/plugins/block.render.php index dbbc4a9b6..fd25db6c1 100755 --- a/include/smarty/plugins/block.render.php +++ b/include/smarty/plugins/block.render.php @@ -33,7 +33,7 @@ function smarty_block_render($params, $text, &$smarty) /* Replace picture if object is disabled */ if(isset($params['disable_picture'])){ - $syn = "/src=['\"][a-z0-9\/.]*['\"]/i"; + $syn = "/src=['\"][^\"']*['\"]/i"; $new = "src=\"".$params['disable_picture']."\""; $text = preg_replace($syn,$new,$text); } @@ -48,7 +48,7 @@ function smarty_block_render($params, $text, &$smarty) if(preg_match("/type['\"= ].*submit/",$text)){ $text = preg_replace("/submit/","button",$text); }else{ - $text = preg_replace("/value=['\" ].*['\" ]/","",$text); + $text = preg_replace("/value=['\"][^\"']*['\"]/","",$text); } /* Remove select options */ -- 2.30.2