summary refs log tree commit diff
path: root/pkgs/development/libraries/grantlee/5/grantlee-no-canonicalize-filepath.patch
blob: 64eb11c3f1566fbe759d250f122c3b51a2653859 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
@@ -142,10 +142,6 @@ Template FileSystemTemplateLoader::loadByName(const QString &fileName,
                      + 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();