Blame SOURCES/PreventiveleQueue.patch

055e32
commit 5437234c59f6c375a8ad0b07f93d459eefd571ba
055e32
Author: Jiri Vanek <jvanek@redhat.com>
055e32
Date:   Tue Jul 9 12:10:39 2019 +0200
055e32
055e32
    Preventively, hash also .. in queue
055e32
055e32
diff --git a/netx/net/sourceforge/jnlp/cache/CacheUtil.java b/netx/net/sourceforge/jnlp/cache/CacheUtil.java
055e32
index 5c8652b6..15e8865c 100644
055e32
--- a/netx/net/sourceforge/jnlp/cache/CacheUtil.java
055e32
+++ b/netx/net/sourceforge/jnlp/cache/CacheUtil.java
055e32
@@ -703,7 +703,11 @@ public class CacheUtil {
055e32
             path.append(File.separatorChar);
055e32
         }
055e32
         String locationPath = location.getPath().replace('/', File.separatorChar);
055e32
-        if (locationPath.contains("..")){
055e32
+        String query = "";
055e32
+        if (location.getQuery() != null) {
055e32
+            query = location.getQuery();
055e32
+        }
055e32
+        if (locationPath.contains("..") || query.contains("..")){
055e32
             try {
055e32
                 /**
055e32
                  * if path contains .. then it can harm lcoal system