Squidly271
2020-09-26 11:46:44 -04:00
committed by GitHub
parent c9bc4f313b
commit faee102808

View File

@@ -278,8 +278,8 @@ function prepareEdit(form) {
swal({title:"_(Invalid share name)_",text:"_(Do not use pool names)_",type:'error',html:true,confirmButtonText:"_(Ok)_"});
return false;
}
if (share.match('[:\\\/*<>|"]')) {
swal({title:"_(Invalid Characters)_",text:"_(You cannot use the following within share names)_"+' : \\ / * < > | "',type:'error',html:true,confirmButtonText:"_(Ok)_"});
if (share.match('[:\\\/*<>|"]?')) {
swal({title:"_(Invalid Characters)_",text:"_(You cannot use the following within share names)_"+' : \\ / * < > | " ?',type:'error',html:true,confirmButtonText:"_(Ok)_"});
return false;
}
form.shareName.value = share;