Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #9777 (new defect)

Opened 1 year ago

Last modified 1 year ago

[PATCH] routing ControllerSegment#regexp_chunk double escapes controller names

Reported by: pythonic Assigned to: core
Priority: low Milestone: 2.x
Component: ActionPack Version: edge
Severity: minor Keywords: tiny
Cc:

Description

In ControllerSegment#regexp_chunk controller names are passed through Regexp.escape and Regexp.union (which also escapes its String arguments), so controller names with regexp-special characters do not match the regexp returned by this method. The patch removes the call to Regexp.escape.

Attachments

fix_controller_segment_regexp_chunk_double_escape.diff (1.4 kB) - added by pythonic on 10/04/07 05:18:27.

Change History

10/04/07 05:18:27 changed by pythonic

  • attachment fix_controller_segment_regexp_chunk_double_escape.diff added.

10/04/07 05:22:32 changed by pythonic

  • keywords set to tiny.