]> source.dussan.org Git - gitea.git/commit
Prevent use of double sub-path and incorrect asset path in manifest (#14827)
authorzeripath <art27@cantab.net>
Sun, 28 Feb 2021 12:29:22 +0000 (12:29 +0000)
committerGitHub <noreply@github.com>
Sun, 28 Feb 2021 12:29:22 +0000 (12:29 +0000)
commitcf29cb30d321204eeddc7c628240a197757ba1b1
treea58a87fa07fb91ae467d48ac783e94d963d3bb6a
parent2e8ce1eaed8f3dcf4c812c7408a851f91abfb76c
Prevent use of double sub-path and incorrect asset path in manifest (#14827)

MakeAbsoluteAssetURL should just url join the static url prefix on to appurl
if it is not an absolute path - this is because StaticURLPrefix is an absolute
prefix not a relative prefix to the app sub url.

Fix #14422

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/setting/setting.go
modules/setting/setting_test.go