PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Text » Text_Wiki » Bug #3162

Change Interwiki regex to allow for additional punctuation

Details

Request #3162Change Interwiki regex to allow for additional punctuation
Submitted2005-01-11 14:27 UTC
Fromdavid dot caylor at fh dot org
Assignedpmjones
StatusClosed
PackageText_Wiki
PHP Version4.3.4
OSLinux
Roadmaps(Not assigned)

Comments

[2005-01-11 14:27 UTC] david dot caylor at fh dot org

Description:
------------
Text_Wiki version 0.23.1

Making a change to line 20 of Interwiki.php to expand the set of characters it allows in the second section of the regexp allows a number of links to be used that currently are not supported. Key examples are Bible references, Wikipedia special pages, and links into some science journals.

Reproduce code:
---------------
20c20
< var $regex = '([A-Za-z0-9_]+):([\/=&~#A-Za-z0-9_]+)';
---
> var $regex = '([A-Za-z0-9_]+):([\/=&~#A-Za-z0-9_:.;-]+)';

[2005-01-25 16:42 UTC] ate2 at cornell dot edu

Another example is attached files. For example I might want

[AttachedFile:report.pdf Read the report]

Goes to:

http://mysite.edu/getFile/?area=1&name=report.pdf