[Pmwiki-users] Brackets in URLs

Patrick R. Michaud pmichaud
Sun Jun 20 07:25:17 CDT 2004


On Sun, Jun 20, 2004 at 08:55:59PM +1200, Robin wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I've encountered a problem with URLs containing brackets, which are likely to 
> hit people using PmWiki to manage references (like I'm doing) who want to use 
> DOI URLs like:
> http://dx.doi.org/10.1016/S0303-2647(03)00133-3
> Is there a nice way to deal with this?

Sure!  Just change $UrlPathPattern to be

    $UrlPathPattern="[^\\s<>[\\]\"\'`|^]*[^\\s<>[\\]\"\'`|^,.?]";

====

The default value of $UrlPathPattern is

    $UrlPathPattern="[^\\s<>[\\]\"\'()`|^]*[^\\s<>[\\]\"\'()`|^,.?]";

which excludes parentheses under the theory that they aren't common 
in URLs and are more likely to indicate parenthetical text
and not be part of a URL.

Pm



More information about the pmwiki-users mailing list