Ignore:
Timestamp:
10/21/10 15:29:26 (14 years ago)
Author:
brunocosta
Message:

Ticket #730 - Verificação de criação e renomeação de pastas.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/js/messages_controller.js

    r3053 r3390  
    108108                if (this.is_local_folder(ttree.FOLDER)) { 
    109109                        folder = prompt(get_lang("Enter a name for the box"), ""); 
     110                        if(folder.match(/[\/\\\!\@\#\$\%\&\*\(\)]/gi)){ 
     111                            alert(get_lang("It's not possible rename this folder. try other folder name")); 
     112                            return false; 
     113                        } 
    110114                        if(trim(folder) == "" || trim(folder) == null){ 
    111115                                alert(get_lang("you have to enter the name of the new folder")); 
     
    130134                                alert(get_lang("you have to enter the name of the new folder")); 
    131135                                return false; 
     136                        } 
     137                        if(folder.match(/[\/\\\!\@\#\$\%\&\*\(\)]/gi)){ 
     138                            alert(get_lang("cannot create folder. try other folder name")); 
     139                            return false; 
    132140                        } 
    133141                        if(ttree.FOLDER=="local_root") 
Note: See TracChangeset for help on using the changeset viewer.