silverstripe/sapphire — pull request #117 by chillu (2011-11-14 14:53:37+00:00)
Title: ENHANCEMENT More flexible URL filtering through new URLSegmentFilter API...

See similar pull request for cms: https://github.com/silverstripe/silverstripe-cms/pull/38
Client request from an internal ticket: http://helpdesk.silverstripe.com/tickets/6756
Same changes for post-2.4: https://github.com/chillu/sapphire/tree/multibyte-urlsegment-post-2.4

The URLSegmentFilter class is modeled after the FileNameFilter class which I've created a couple of months ago in response to a security issue, as well as fixing the same problem (file paths with special characters).
Its using the Object::useCustomClass() system, which is as close as we can get to a globally configurable dependency injection at the moment, right?

Do you think the allowMultibyte naming is understandable? I've documented it as well, hopefully in place where it is found.