]> source.dussan.org Git - nextcloud-server.git/commit
{J,CS}SResourceLocator: account for symlinks in app path 7170/head
authorKyle Fazzari <kyrofa@ubuntu.com>
Tue, 14 Nov 2017 17:22:33 +0000 (09:22 -0800)
committerKyle Fazzari <kyrofa@ubuntu.com>
Tue, 14 Nov 2017 17:22:33 +0000 (09:22 -0800)
commit697774112fc80a56faadd8c5a9f71d28b8ef0d64
treea877119e979913563de214e6ce6175cfcaae0ef1
parent82e4d9b9cce29d514c090ad5fb109f603d873b25
{J,CS}SResourceLocator: account for symlinks in app path

Currently, if the app path includes a symlink, the calculated webDir
will be incorrect when generating CSS and URLs will be pointing to the
wrong place, breaking CSS.

Use realpath when retrieving app path, and these issues go away.

Fix #6028

Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
lib/private/Template/CSSResourceLocator.php
lib/private/Template/JSResourceLocator.php
tests/lib/Template/CSSResourceLocatorTest.php [new file with mode: 0644]
tests/lib/Template/JSResourceLocatorTest.php [new file with mode: 0644]