mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
fixed problem pointed out by lukasz.pilorz(at)allegro.pl
This commit is contained in:
parent
b98808f87f
commit
af72b6ea54
@ -513,13 +513,12 @@
|
||||
###############################################################################
|
||||
function _bad_protocol_once($string)
|
||||
{
|
||||
return preg_replace(
|
||||
'/^((&[^;]*;|[\sA-Za-z0-9])*)'.
|
||||
'(:|:|&#[Xx]3[Aa];)\s*/e',
|
||||
'\$this->_bad_protocol_once2("\\1")',
|
||||
$string
|
||||
);
|
||||
return $string;
|
||||
$string2 = preg_split('/:|:|:/i', $string, 2);
|
||||
if(isset($string2[1]) && !preg_match('%/\?%',$string2[0]))
|
||||
{
|
||||
return $this->_bad_protocol_once2($string2[0]).trim($string2[1]);
|
||||
}
|
||||
return '';
|
||||
} # function _bad_protocol_once
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user