[pmwiki-devel] stripmagic
Henrik
henrik.bechmann at sympatico.ca
Sat Dec 23 08:49:31 CST 2006
Patrick,
I'm having a magic_quotes_gpc problem:
I'm writing an enhanced version of IncludeText() (based on 2.1.26 for
now), using
Markup('includepage', '>if',
'/\\(:includepage\\s+(\\S.*?):\\)/ei',
"PRR(IncludePageText(\$pagename, '$1'))");
One of the enhanced parameters is readmoretext:
(:includepage SomeGroup.SomePage readmoreon=true
readmoretarget=SomeOtherGroup.SomeOtherPage readmoretext="See more info
>>":)
Which is supposed to add a "See more info >>" link after the include.
But backslashes are being added to the double quotes of the readmoretext
value (testing on PHP 5.2) somewhere between the text file and the
$inclspec argument of IncludePageText, so by the time ParseArgs gets
hold of it inside IncludePageText() I only get
\"See
for the readmoretext parameter.
stripmagic($inclspec) inside IncludePageText fixes it (meaning
get_magic_quotes_gpc() returns true).
Is this a PHP version issue?
- Henrik
--
Henrik Bechmann
www.osscommons.ca
www.bechmannsoftware.com
Webmaster, www.dufferinpark.ca
More information about the pmwiki-devel
mailing list