[geeklog-cvs] Geeklog-1.x/system/classes kses.class.php,1.4,1.5
Michael Jervis
mjervis at qs1489.pair.com
Sun May 4 02:57:37 EDT 2008
Update of /cvsroot/geeklog/Geeklog-1.x/system/classes
In directory qs1489.pair.com:/tmp/cvs-serv45715/system/classes
Modified Files:
kses.class.php
Log Message:
KSES patch.
Index: kses.class.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/classes/kses.class.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** kses.class.php 11 Jan 2007 20:40:41 -0000 1.4
--- kses.class.php 4 May 2008 06:57:35 -0000 1.5
***************
*** 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