Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 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@… 4 years ago.
Patch to strip leading '/'s from the url

Download all attachments as: .zip

Change History (7)

Changed 4 years ago by neil@…

Patch to strip leading '/'s from the url

comment:1 Changed 4 years ago by rjollos

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

comment:2 Changed 4 years ago by rjollos

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

comment:3 Changed 4 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 4 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 4 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 4 years ago by neil@…

Just tested trunk here - seems to be working fine.

Thanks.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from anonymous. Next status will be 'closed'.
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.