Posted by timj on October 21, 2007 at 11:56pm
1 follower
Jump to:
| Project: | PEAR Wiki Filter |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
interwiki mappings such as:
File area (attachments) | files | /files/%s
do not work correctly, because the current code checks for $url=="" instead of a "" prefix. the attached patch fixes this, so that with the above config, a wiki path such as [[files:drupal-5.3-cache.diff]] correctly expands into http://sitename/drupalpath/files/drupal-5.3-cache.diff.
| Attachment | Size |
|---|---|
| pear_wikipath.diff | 671 bytes |
Comments
#1
brr, seems the input parser eat all my path-tags ;)
the interwiki mapping url i was referring to is "<path>/files/%s" (path-tag + /files/%s). the rest of the text was referring to exactly matching $url against a path-tag, instead of just matching path-tag prefixes in $url.