diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-01-22 21:13:36 +0100 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-04-24 16:19:10 +0200 |
commit | 72a16b17792e2a5353cc0ffce8fc24ed4ff1351c (patch) | |
tree | b5dbe4e87f6ce4950859f8660bd4b7feceb16775 /tests/data | |
parent | 84a35361599640d838815a4127eab58e49f052fc (diff) | |
download | nextcloud-server-72a16b17792e2a5353cc0ffce8fc24ed4ff1351c.tar.gz nextcloud-server-72a16b17792e2a5353cc0ffce8fc24ed4ff1351c.zip |
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>
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/svg/files-app-red.svg | 1 | ||||
-rw-r--r-- | tests/data/svg/settings-admin-red.svg | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/data/svg/files-app-red.svg b/tests/data/svg/files-app-red.svg new file mode 100644 index 00000000000..81d7fca1472 --- /dev/null +++ b/tests/data/svg/files-app-red.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="32" viewBox="0 0 32 32" width="32" version="1.1"><path fill="#f00" d="m3 4c-0.5 0-1 0.5-1 1v22c0 0.52 0.48 1 1 1h26c0.52 0 1-0.482 1-1v-18c0-0.5-0.5-1-1-1h-13l-4-4z"/></svg> diff --git a/tests/data/svg/settings-admin-red.svg b/tests/data/svg/settings-admin-red.svg new file mode 100644 index 00000000000..54d7d3a9b15 --- /dev/null +++ b/tests/data/svg/settings-admin-red.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 16 16" height="16" width="16" version="1.1"><path color="#000" d="m1 1v4h4v-4h-4zm5 1v2h8v-2h-8zm-5 4v4h4v-4h-4zm5 1v2h8v-2h-8zm-5 4v4h4v-4h-4zm1 1h2v2h-2v-2zm4 0v2h8v-2h-8z" fill="#f00"/></svg> |