[geeklog-cvs] Geeklog-1.x/system/classes kses.class.php, 1.3, 1.3.2.1
Dirk Haun
dhaun at qs1489.pair.com
Sat Jun 14 09:55:37 EDT 2008
Update of /cvsroot/geeklog/Geeklog-1.x/system/classes
In directory qs1489.pair.com:/tmp/cvs-serv33304
Modified Files:
Tag: geeklog_1_4_1_1
kses.class.php
Log Message:
Ported kses patch over from the trunk
Index: kses.class.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/classes/kses.class.php,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -C2 -d -r1.3 -r1.3.2.1
*** kses.class.php 15 May 2006 05:49:44 -0000 1.3
--- kses.class.php 14 Jun 2008 13:55:35 -0000 1.3.2.1
***************
*** 942,951 ****
function _bad_protocol_once($string)
{
! return preg_replace(
! '/^((&[^;]*;|[\sA-Za-z0-9])*)'.
! '(:|:|&#[Xx]3[Aa];)\s*/e',
! '\$this->_bad_protocol_once2("\\1")',
! $string
! );
}
--- 942,951 ----
function _bad_protocol_once($string)
{
! $string2 = preg_split('/:|:|:/i', $string, 2);
! if(isset($string2[1]) && !preg_match('%/\?%',$string2[0]))
! {
! $string = $this->_bad_protocol_once2($string2[0]).trim($string2[1]);
! }
! return $string;
}
More information about the geeklog-cvs
mailing list