Changeset 7524


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

Controle de cycle infini

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Jav_BDP/com/scenari/m/bdp/service/viewfiles/HSDialogViewFiles.java

    r7463 r7524  
    440440                } 
    441441 
     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                } 
     447 
    442448                //Controle de l'existence de la destination. 
    443449                int vStatutDst = vDst.hGetStatus(); 
     
    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.