From b1c8db9ee85b6a0ed04bd6688fb07faf56da52f2 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Wed, 2 Apr 2008 09:16:00 +0000 Subject: [PATCH] fix for the problem, that allowed attribute values where stripped, due to the security bugfix --- phpgwapi/inc/class.kses.inc.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.kses.inc.php b/phpgwapi/inc/class.kses.inc.php index 43e44a7f4b..2e96aeabbc 100644 --- a/phpgwapi/inc/class.kses.inc.php +++ b/phpgwapi/inc/class.kses.inc.php @@ -517,7 +517,12 @@ if(isset($string2[1]) && !preg_match('%/\?%',$string2[0])) { return $this->_bad_protocol_once2($string2[0]).trim($string2[1]); - } + } else { + if (!isset($string2[1])) + { + return $string2[0]; + } + } return ''; } # function _bad_protocol_once @@ -676,4 +681,4 @@ return '0.0.2 (OOP fork of kses 0.2.1)'; } # function _version } -?> \ No newline at end of file +?>