Opened 10 years ago

Last modified 9 years ago

#3382 new defect

[PATCH] Multiple fixes

Reported by: James Yonan Owned by: permon
Priority: normal Component: MediaWikiPluginMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11


This patch is against (r2483)

  • Fixed issue where _specialUrlPat regex in replaceFreeExternalLinks was failing to render external links in paragraphs containing newlines because the re.DOTALL regex flag was not being used to allow .* to match newlines.
  • Fixed bug in replaceFreeExternalLinks where the loop variable 'i' was being stepped on for another purpose by code inside the loop.
  • Fixed regex issue where control-char ranges for ascii were being specified to match against unicode strings.
  • Fixed issue where nextItem was called with only one rather than the required two parameters.
  • Support rendering of anchor links such as: [[#heading 4|heading four]]

Attachments (1)

mediawikipluginmacro.diff (5.2 KB) - added by James Yonan 10 years ago.

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by James Yonan

Attachment: mediawikipluginmacro.diff added

comment:1 Changed 9 years ago by dclark@…

Thanks - without this patch, this plugin doesn't work in trac 0.11; with it, it does.

If you install system-wide you'll also need this in your trac.ini [components] section:

mediawiki.* = enabled

Debian package with this patch (built on Ubuntu Hardy):

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain permon.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.