hoaproject / Router

The Hoa\Router library.
https://hoa-project.net/
28 stars 11 forks source link

Decode URI after having splitted subdomain & URI #28

Closed Hywan closed 9 years ago

Hywan commented 9 years ago

We can use @ to specify a subdomain and a URI (for instance sub@/uri/) in the same $uri.

Previously, we decoded URI before splitting the subdomain and the URI. Consequently, if a URI contains %40, being @, everything at the left of %40 will be considered as a subdomain, and therefore, it is highly likely to fail the routing.

Now we decode URI after having splitted the subdomain and the URI.

Hywan commented 9 years ago

/ping @osaris for a review

vonglasow commented 9 years ago

:+1:

Pierozi commented 9 years ago

:+1:

osaris commented 9 years ago

Perfect !

Hywan commented 9 years ago

New snapshot: https://github.com/hoaproject/Router/releases/tag/2.15.02.26.