[pLog-svn] regex
Mark Wu
markplace at gmail.com
Thu Jul 20 07:04:01 GMT 2006
A better idea is check the svn commit notice by your slef ... That' will be
easier and quicker.
About 1, I guess it is to fullfill the utf-8 encoding, so, we chamge the /im
to /u utf-8 modifier.
About 2, To fix <object classid="CLSID:xxxxx"> break by kses
About 3, you have to check the svn commit notice.
Mark
_____
From: plog-svn-bounces at devel.lifetype.net
[mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Ma'moon
Sent: Thursday, July 20, 2006 2:58 PM
To: plog-svn at devel.lifetype.net
Subject: [pLog-svn] regex
Hi,
lately i have upgraded my lifetype from 1.0.2 to 1.0.6 and i have noticed
the the following differences between some files and i wondered why they
were changed :
(1) class/dao/article.class.php
( V1.0.2 => $regexp
="/<a.*id=\"res_([0-9]+)\".*>.*<\/a>/im"; )
( V1.0.6 => $regexp
="|<a.*id=\"res_([0-9]+)\".*>.*<\/a>|U"; )
(
Line 879 )
(2) class/data/kses.class.php
( V1.0.2 =>
'/^((&[^;]*;|[\sA-Za-z0-9])*)'.'(:|:|&#[Xx]3[Aa];)\s*/e' )
( V1.0.6 =>
'/^((&[^;]*;|[\sA-Za-z0-9])*)'.'(:|:|&#[Xx]3[Aa];)(\/|/|&#[Xx]2[Ff];
)(\/|/|&#[Xx]2[Ff];)\s*/e' )
(
Line 604 )
(3) class/data/validator/rules/uintrule.class.php
( V1.0.2 => define(
"UINT_RULE_REG_EXP", "^([1-9][0-9]*)|0$"); )
( V1.0.6 => define(
"UINT_RULE_REG_EXP", "^([0-9]+)$"); )
(
Line 5 )
my Question is why the above lines has been changed, and what does it
improve ?
Thank you.
-Ma'moon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http:// devel.lifetype.net/pipermail/plog-svn/attachments/20060720/729b9ea3/attachment.html
More information about the pLog-svn
mailing list