Skip to content

Instantly share code, notes, and snippets.

@sileht
Created May 28, 2017 19:03
Show Gist options
  • Save sileht/5753118ee048352778c2a0c5b23ea47d to your computer and use it in GitHub Desktop.
Save sileht/5753118ee048352778c2a0c5b23ea47d to your computer and use it in GitHub Desktop.
nextcloud-12.0.0-css-workaround
diff -uNr nextcloud-12.ori/lib/private/Template/CSSResourceLocator.php nextcloud-12/lib/private/Template/CSSResourceLocator.php
--- nextcloud-12.ori/lib/private/Template/CSSResourceLocator.php 2017-05-28 21:03:02.429490871 +0200
+++ nextcloud-12/lib/private/Template/CSSResourceLocator.php 2017-05-28 20:59:23.120606748 +0200
@@ -117,7 +117,7 @@
parent::append($root, $file, $webRoot, $throw);
} else {
if (!$webRoot) {
- $tmpRoot = $root;
+ $tmpRoot = realpath($root);
/*
* traverse the potential web roots upwards in the path
*
diff -uNr nextcloud-12.ori/lib/private/Template/ResourceLocator.php nextcloud-12/lib/private/Template/ResourceLocator.php
--- nextcloud-12.ori/lib/private/Template/ResourceLocator.php 2017-05-28 21:02:51.649447837 +0200
+++ nextcloud-12/lib/private/Template/ResourceLocator.php 2017-05-28 20:59:06.524539015 +0200
@@ -125,7 +125,7 @@
}
if (!$webRoot) {
- $tmpRoot = $root;
+ $tmpRoot = realpath($root);
/*
* traverse the potential web roots upwards in the path
*
@pongraczi
Copy link

Thank you, it is working on my system, too!
Simple and elegant :)

@derkostka
Copy link

Seems very easy. Do you want to create a pull request ?

@mightycoco
Copy link

You saved my day!

@llucenic
Copy link

Thank you, very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment