From 218eee6718d6ac4ebd6e4229a373a93c1903afee Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 29 Mar 2007 09:19:33 +0000 Subject: [PATCH] Added value checks for sieve test elements git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5924 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/sieve/class_sieveElement_If.inc | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.30.2