Changeset 7525


Ignore:
Timestamp:
11/27/06 22:10:15 (5 years ago)
Author:
sys
Message:

Controle de cycle infini

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2.x/Jav_BDP/com/scenari/m/bdp/service/viewfiles/HSDialogViewFiles.java

    r2389 r7525  
    439439                        return this; 
    440440                } 
     441                 
     442                //Controle que la dst ne soit pas un fils de source : boucle infinie. 
     443                if (vUrlDst.startsWith(fSource.hGetPath()) && vUrlDst.length()>fSource.hGetPath().length() &&  vUrlDst.charAt(fSource.hGetPath().length())=='/') { 
     444                        fPageResultatDav = new WResultatError(HWebdavCodes.SC_FORBIDDEN); 
     445                        return this;             
     446                } 
    441447 
    442448                //Controle de l'existence de la destination. 
     
    537543                                return this; 
    538544                        } 
     545                } 
     546                 
     547                //Controle que la dst ne soit pas un fils de source : boucle infinie. 
     548                if (vUrlDst.startsWith(fSource.hGetPath()) && vUrlDst.length()>fSource.hGetPath().length() &&  vUrlDst.charAt(fSource.hGetPath().length())=='/') { 
     549                        fPageResultatDav = new WResultatError(HWebdavCodes.SC_FORBIDDEN); 
     550                        return this;             
    539551                } 
    540552 
Note: See TracChangeset for help on using the changeset viewer.