[pLog-svn] r7242 - plog/branches/lifetype-1.2/class/data
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Wed Jul 15 07:17:56 EDT 2020
Author: jondaley
Date: 2020-07-15 07:17:56 -0400 (Wed, 15 Jul 2020)
New Revision: 7242
Modified:
plog/branches/lifetype-1.2/class/data/kses.class.php
Log:
urgh. missed an eval'ed preg_replace that was causing all the trouble.
Modified: plog/branches/lifetype-1.2/class/data/kses.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/data/kses.class.php 2020-07-15 10:57:35 UTC (rev 7241)
+++ plog/branches/lifetype-1.2/class/data/kses.class.php 2020-07-15 11:17:56 UTC (rev 7242)
@@ -611,10 +611,10 @@
###############################################################################
function _bad_protocol_once($string)
{
- return preg_replace(
+ return preg_replace_callback(
'/^((&[^;]*;|[\sA-Za-z0-9])*)'.
- '(:|:|&#[Xx]3[Aa];)(\/|/|&#[Xx]2[Ff];)(\/|/|&#[Xx]2[Ff];)\s*/e',
- '\$this->_bad_protocol_once2("\\1")',
+ '(:|:|&#[Xx]3[Aa];)(\/|/|&#[Xx]2[Ff];)(\/|/|&#[Xx]2[Ff];)\s*/',
+ function($m){ return $this->_bad_protocol_once2($m[1]); },
$string
);
} # function _bad_protocol_once
More information about the pLog-svn
mailing list