fixed problem pointed out by lukasz.pilorz(at)allegro.pl

This commit is contained in:
Ralf Becker 2008-03-19 11:10:17 +00:00
parent f53a1cf01d
commit 42a07bc86c

View File

@ -513,13 +513,12 @@
############################################################################### ###############################################################################
function _bad_protocol_once($string) function _bad_protocol_once($string)
{ {
return preg_replace( $string2 = preg_split('/:|:|:/i', $string, 2);
'/^((&[^;]*;|[\sA-Za-z0-9])*)'. if(isset($string2[1]) && !preg_match('%/\?%',$string2[0]))
'(:|:|&#[Xx]3[Aa];)\s*/e', {
'\$this->_bad_protocol_once2("\\1")', return $this->_bad_protocol_once2($string2[0]).trim($string2[1]);
$string }
); return '';
return $string;
} # function _bad_protocol_once } # function _bad_protocol_once