[pmwiki-users] Re: central european characters

Anno anno at shroomery.org
Tue Sep 27 01:32:10 CDT 2005

I found a solution to my problem, and I think it is actually a bug in how the
character substitution is done.

In pagelist.php and in pmwiki.php, in 3 places the special characters are
replaced with the html entities, but if the character is a part of a html
entity, the substitution shouldn't be done.

In particular:

in pagelist.php
SDV($SearchQuery, str_replace('$', '$', 
  htmlspecialchars(stripmagic(@$_REQUEST['q']), ENT_NOQUOTES)));

I do:
$SearchQuery=preg_replace('/&#(\d+?);/','&#$1;', $SearchQuery);

and after:
$rq = htmlspecialchars(stripmagic(@$_REQUEST['q']), ENT_NOQUOTES);
I do:
$rq=preg_replace('/&#(\d+?);/','&#$1;', $rq);

in pmwiki.php
  $FmtV['$EditText'] = 
I do:

Could you include this fix in the next release?
Thank you!

More information about the pmwiki-users mailing list