Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#6887 closed defect (fixed)

[Patch] WikiCalenderMacro doesn't properly handled urls starting with '/'

Reported by: neil@… Owned by: anonymous
Priority: normal Component: WikiCalendarMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

If an url pattern starting with '/' is used, this isn't properly stripped before the call to has_page, and so the macro never sees that such pages exist.

The attached patch fixes the bug here.

Attachments (1)

WikiCalenderMacro_urls.diff (531 bytes) - added by neil@… 5 years ago.
Patch to strip leading '/'s from the url

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by neil@…

Patch to strip leading '/'s from the url

comment:1 Changed 5 years ago by rjollos

Thanks for the patch. I will apply it to the trunk tomorrow.

comment:2 Changed 5 years ago by rjollos

  • Owner changed from rjollos to anonymous
  • Status changed from new to assigned

comment:3 Changed 5 years ago by rjollos

  • Summary changed from WikiCalenderMacro doesn't properly handled urls starting with '/' to [Patch] WikiCalenderMacro doesn't properly handled urls starting with '/'

I will go ahead and apply the patch now, but I won't have time to test. If you are able to test the latest version of the trunk, please report back if you can.

comment:4 Changed 5 years ago by rjollos

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [7892]) Properly handle URLs that start with . Thanks neil. Fixes #6887.

comment:5 Changed 5 years ago by rjollos

Also, please go ahead and list your name in the list of Contributors on the wiki page, if you like.

comment:6 Changed 5 years ago by neil@…

Just tested trunk here - seems to be working fine.

Thanks.

Add Comment

Modify Ticket

Action
as closed The owner will remain anonymous.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.