From d26f5cd0cb4d8baaaac3dd85c7f75dd07e54dd68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Mon, 20 Sep 2010 16:22:43 +0000 Subject: [PATCH] Upload Verzeichnis mit Bindestrich und Unterstrich erlauben --- cis/private/lehre/upload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cis/private/lehre/upload.php b/cis/private/lehre/upload.php index 4f39bd1fe..e9eef884a 100644 --- a/cis/private/lehre/upload.php +++ b/cis/private/lehre/upload.php @@ -155,7 +155,7 @@ function checkvz(id) { vz = document.getElementById(id).value; - re = new RegExp(/^(\d|\w|\s)*$/); + re = new RegExp(/^(\d|\w|\s|[-_])*$/); if (vz.match(re)) { @@ -820,7 +820,7 @@ A:hover { { if(isset($new_dir_name_text) && $new_dir_name_text != "") { - if(!preg_match('/^(\d|\w|\s)*$/',$new_dir_name_text)) + if(!preg_match('/^(\d|\w|\s|[-_])*$/',$new_dir_name_text)) { echo '
Verzeichnisname ist ungueltig!
'; }