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 +?>