codeguy/Slim — pull request #609 by BradCrumb (2013-09-03 12:32:27+00:00)
Title: Update Router.php

Fixed bug where urlForl remove all characters after an empty optional segment.

Ie.
//Old behavior
testroute: /partA/partB(/:partC)/partD(.html)
$url = $app->urlFor('testroute'); //Would become /partA/partB

//New behavior
testroute: /partA/partB(/:partC)/partD(.html)
$url = $app->urlFor('testroute'); //Would become /partA/partB/pardD.html