Add ; and = to support URI path segment parameters

RFC 3986 (the URI specification) describes the , ; and =
characters used for including parameters in path segments.
Typically these are seen only on the final segment, just before
any query parameters, i.e.
    http://www.site.com/path1/path2;jsessionid=OI24B9ASD7BSSD

Adding ; and = to the regex, as , is already included
This commit is contained in:
Jeremiah Shirk 2012-03-10 14:23:16 -06:00 committed by Pete Fritchman
parent b495b9e658
commit 6c1b208ab9

View file

@ -37,7 +37,7 @@ URIPROTO [A-Za-z]+(\+[A-Za-z+]+)?
URIHOST %{IPORHOST}(?::%{POSINT:port})?
# uripath comes loosely from RFC1738, but mostly from what Firefox
# doesn't turn into %XX
URIPATH (?:/[A-Za-z0-9$.+!*'(),~:;#%_-]*)+
URIPATH (?:/[A-Za-z0-9$.+!*'(),~:;=#%_-]*)+
#URIPARAM \?(?:[A-Za-z0-9]+(?:=(?:[^&]*))?(?:&(?:[A-Za-z0-9]+(?:=(?:[^&]*))?)?)*)?
URIPARAM \?[A-Za-z0-9$.+!*'(),~#%&/=:;_-]*
URIPATHPARAM %{URIPATH}(?:%{URIPARAM})?