From: hickert Date: Thu, 20 Jul 2006 05:36:16 +0000 (+0000) Subject: Updated regex X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ac1973d8ab3daa49a77a60980e5a2ee1160d37dc;p=gosa.git Updated regex git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4245 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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 */