3
0
Fork 0
forked from mirrors/nixpkgs

grantlee: don't canonicalize template paths

This commit is contained in:
Thomas Tuegel 2017-05-12 11:01:31 -05:00
parent e6b42d7403
commit 58cf19a98a
No known key found for this signature in database
GPG key ID: 22CBF5249D4B4D59
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,27 @@
Index: grantlee-5.1.0/templates/lib/templateloader.cpp
===================================================================
--- grantlee-5.1.0.orig/templates/lib/templateloader.cpp
+++ grantlee-5.1.0/templates/lib/templateloader.cpp
@@ -141,10 +141,6 @@ Template FileSystemTemplateLoader::loadB
+ QLatin1Char('/') + fileName);
const QFileInfo fi(file);
- if (file.exists()
- && !fi.canonicalFilePath().contains(
- QDir(d->m_templateDirs.at(i)).canonicalPath()))
- return Template();
++i;
}
@@ -173,11 +169,6 @@ FileSystemTemplateLoader::getMediaUri(co
+ QLatin1Char('/') + fileName);
const QFileInfo fi(file);
- if (!fi.canonicalFilePath().contains(
- QDir(d->m_templateDirs.at(i)).canonicalPath())) {
- ++i;
- continue;
- }
if (file.exists()) {
auto path = fi.absoluteFilePath();

View file

@ -1 +1,2 @@
grantlee-nix-profiles.patch grantlee-nix-profiles.patch
grantlee-no-canonicalize-filepath.patch