From: hickert Date: Thu, 29 Mar 2007 09:19:33 +0000 (+0000) Subject: Added value checks for sieve test elements X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=218eee6718d6ac4ebd6e4229a373a93c1903afee;p=gosa.git Added value checks for sieve test elements git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5924 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/sieve/class_sieveElement_If.inc b/include/sieve/class_sieveElement_If.inc index fdda545c7..9de56b29a 100644 --- a/include/sieve/class_sieveElement_If.inc +++ b/include/sieve/class_sieveElement_If.inc @@ -643,6 +643,10 @@ class sieve_if $tmp2 = split(",",$vls); foreach($tmp2 as $val){ $tmp[] = trim($val); + + if(preg_match("/\"/",$val)){ + $parsed[$key]['LastError'] = _("Invalid character found in address attribute. Quotes are not allowed here."); + } } $parsed[$key]['Key_List'] = $tmp; } @@ -655,6 +659,9 @@ class sieve_if $tmp2 = split(",",$vls); foreach($tmp2 as $val){ $tmp[] = trim($val); + if(preg_match("/\"/",$val)){ + $parsed[$key]['LastError'] = _("Invalid character found in value attribute. Quotes are not allowed here."); + } } $parsed[$key]['Value_List'] = $tmp; }