Zend\Uri\Uri::removePathDotSegments
Remove any extra dot segments (/../, /./) from a path
Algorithm is adapted from RFC-3986 section 5.2.4 (@link http://tools.ietf.org/html/rfc3986#section-5.2.4)
Signature
public function removePathDotSegments(string
$path )
Parameters
$path
— string
Returns
- string
Line | Task |
---|---|
1092+ | consider optimizing |