00369: Some URLs are parsed as date

Summary: Some URLs are parsed as date
Created: 2005-03-07 16:53
Status: Closed - not a PmWiki bug
Category: Bug
Assigned:
Priority: 3
Version: 2.0.beta26
OS: Linux, Apache, PHP 4.3.10

Description: Some URLs like for example http://www.nzz.ch/2004/12/17/em/page-articleA2B3N.html are parsed to http://www.nzz.ch/Freitag, 17 Dezember 2004/em/page-articleA2B3N.html.

The 2004/12/17 part of the original URL is treated as if it was a date and transformed into the date format according to some language settings (in my case German).


I think this has to be a markup/cookbook related bug and not a problem with PmWiki itself, as the url works correctly in "vanilla" PmWiki. For example, [(approve links) edit diff].

You might try disabling individual cookbook recipes or custom markups until you find out which one is causing the incorrect translation, then report that to the recipe author.

--Pm


wikilog.php could cause such problem, you can remark the code in wikilog.php at line 179-180 around:

Markup('wdate','inline','/(\d\d\d\d)([-\.\/])?(\d\d)\2(\d\d)/e', "((IsDate('$1$3$4')) ? longdate('$1$3$4') : '$0')");

Then, all date in your page would not be transformed into long date format anymore, including the page generated by wikilog.php itself.