Преглед изворни кода

Fix SIOOBe when extracting a resource without a path with usePath set to true

Fixes issue 1564


git-svn-id: http://svn.dmdirc.com/trunk@4453 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Chris Smith пре 16 година
родитељ
комит
0694bc072b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      src/com/dmdirc/util/resourcemanager/ResourceManager.java

+ 1
- 1
src/com/dmdirc/util/resourcemanager/ResourceManager.java Прегледај датотеку

@@ -147,7 +147,7 @@ public abstract class ResourceManager {
147 147
         
148 148
         File newDir;
149 149
         
150
-        if (usePath) {
150
+        if (usePath && resourceName.indexOf('/') > -1) {
151 151
             newDir = new File(directory,
152 152
                     resourceName.substring(0, resourceName.lastIndexOf('/')) + "/");
153 153
         } else {

Loading…
Откажи
Сачувај