[pmwiki-users] update php break urls
jdd
jdd at dodin.org
Thu Jun 14 07:41:20 CDT 2007
Patrick R. Michaud wrote:
> Try the following code in local/config.php (near the beginning):
>
> $pagename = @$_REQUEST['n'];
> if (!$pagename) $pagename = urldecode(substr(@$_SERVER['PATH_INFO'], 1));
> if (preg_match('/[\\x80-\\xbf]/', $pagename))
> $pagename = utf8_decode(pagename);
> $pagename = preg_replace('![^[:alnum:]\\x80-\\xff]+$!', '', $pagename);
>
> This will get the $pagename from the server's PATH_INFO environment
> variable, which _does_ appear to be working properly on your server.
I have the same isp as the OP. When I paste this in local/config.php,
I get an error on <at>.
I beg I must replace this by something? what?
thanks
jdd
--
http://www.dodin.net
http://gourmandises.orangeblog.fr/
More information about the pmwiki-users
mailing list