Make it possible to resolve svg for apps_paths outside the document root
Previous implementation assumes the app path is always a child \OC::$SERVERROOT. That's not always true.
Signed-off-by:
Daniel Kesselberg <mail@danielkesselberg.de>
Showing
- core/Controller/SvgController.php 6 additions, 5 deletionscore/Controller/SvgController.php
- tests/Core/Controller/SvgControllerTest.php 61 additions, 4 deletionstests/Core/Controller/SvgControllerTest.php
- tests/data/svg/files-app-red.svg 1 addition, 0 deletionstests/data/svg/files-app-red.svg
- tests/data/svg/settings-admin-red.svg 1 addition, 0 deletionstests/data/svg/settings-admin-red.svg
Loading
Please register or sign in to comment