Commit 484c2001 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

routing, fix request query parsing

(cherry picked from commit b7298829)
parent 600b583d
......@@ -1068,8 +1068,8 @@ function system_generate_lighty_config(
# Phalcon ui and api routing
alias.url += ( "/ui/" => "/usr/local/opnsense/www/" )
alias.url += ( "/api/" => "/usr/local/opnsense/www/" )
url.rewrite-if-not-file = ( "^/ui/(.*)$" => "/ui/index.php?_url=/$1" ,
"^/api/(.*)$" => "/api/api.php?_url=/$1"
url.rewrite-if-not-file = ( "^/ui/([^\?]+)(\?(.*))?" => "/ui/index.php?_url=/$1&$3" ,
"^/api/([^\?]+)(\?(.*))?" => "/api/api.php?_url=/$1&$3"
)
EOD;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment