1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 18:03:22 +00:00
nixpkgs/pkgs/development/libraries/grantlee/5/grantlee-no-canonicalize-filepath.patch
2017-08-21 06:51:17 -05:00

28 lines
918 B
Diff

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();