luci/modules/luci-base
Jo-Philipp Wich 79383f5a74 luci-base: ensure that base url is emitted with trailing slash
Now that we don't have an url token anymore, '/cgi-bin/luci' becomes a valid
url while cookies are restricted to only '/cgi-bin/luci/' and below.

In order to ensure that the first request after login refers to a path
covered by the authentication cookie, change build_url() to always append
a trailing slash if we're referring to the base url.

This should fix the login problems mentioned in #516.

While we're touching the dispatcher, also remove remaining url token code.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-10-21 16:48:25 +02:00
..
htdocs resources/icons: Use ZopfliPNG to save 5.4 KB 2015-09-29 10:41:43 -07:00
luasrc luci-base: ensure that base url is emitted with trailing slash 2015-10-21 16:48:25 +02:00
po i18n: Sync translations 2015-10-13 12:35:57 +03:00
root luci-base: change index.html to be more like current themes 2015-09-29 11:44:53 +03:00
src Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
Makefile luci-base: depend on luci-lib-ip and remove ip.lua 2015-01-22 15:08:09 +01:00