Procházet zdrojové kódy

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 před 16 roky
rodič
revize
0694bc072b

+ 1
- 1
src/com/dmdirc/util/resourcemanager/ResourceManager.java Zobrazit soubor

@@ -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 {

Načítá se…
Zrušit
Uložit