Home » Text » Text_Wiki » Bug #3162
Change Interwiki regex to allow for additional punctuation
Details
| Request #3162 | Change Interwiki regex to allow for additional punctuation |
|---|---|
| Submitted | 2005-01-11 14:27 UTC |
| From | david dot caylor at fh dot org |
| Assigned | pmjones |
| Status | Closed |
| Package | Text_Wiki |
| PHP Version | 4.3.4 |
| OS | Linux |
| 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