EllisLab/CodeIgniter — pull request #2055 by chernjie (2012-12-06 04:11:27+00:00)
Title: Bug fix for relative directory removal

This fixes two bugs:
- for segments that ends with ".." e.g. /user/username../details, this should not be replaced
- current solution only replace double slashes, this solutions removes the infinite number of recurring slashes