Skip to content

Commit 02ada58

Browse files
committed
Do not consider parentheses to be illegal characters in file names in the File Manager.
This prevents deletion of files that have parentheses in the name.
1 parent 370f2b7 commit 02ada58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ sub checkPWD ($c, $pwd, $renameError = 0) {
988988
my $original = $pwd;
989989
$pwd =~ s!(^|/)\.!$1_!g; # don't enter hidden directories
990990
$pwd =~ s!^/!!; # remove leading /
991-
$pwd =~ s![^-_./A-Z0-9~, ]!_!gi; # no illegal characters
991+
$pwd =~ s![^-_./A-Z0-9~, ()]!_!gi; # no illegal characters
992992
return if $renameError && $original ne $pwd;
993993

994994
$pwd = '.' if $pwd eq '';

0 commit comments

Comments
 (0)