Blame SOURCES/PreventiveleQueue.patch

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