Lukas W.
Well-known member
- Affected version
- 2.2.2
When querying the API without full friendly URLs, the index.php condition
\XF::requestUrlMatchesApi()
fails its check due to receiving an escaped version of the route path from XF\Http\Request
. http://localhost/xf2/index.php?api/test
will result into a base path of api%2Ftest
, which fails the regular expression #^api(?:/|$)#i
. As a result, the public app is launched, and fails to identify the correct route.