$string2 may not have been initialized (php5.class.kses.php)
Status: Inactive
Brought to you by:
metaur
hi,
i think, i've found an error in the file
"php5.class.kses.php":
private function filterProtocols($string)
{
$string = $this->decodeEntities($string);
$string = preg_replace('/\s/', '', $string);
$string = $this->removeNulls($string);
$string = preg_replace('/\xad+/', '', $string2); #
deals with Opera "feature"
$string = strtolower($string);
if(is_array($this->allowed_protocols) &&
count($this->allowed_protocols) > 0)
{
foreach ($this->allowed_protocols as $one_protocol)
{
if (strtolower($one_protocol) == $string)
{
return "$string:";
}
}
}
return '';
}
there is a var named $string2, which may not have been
initialized
Logged In: NO
I think you have to change it to "$string = preg_replace('/\xad+/', '', $string); #"
otherwise the protocol filter will not work correctly