mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Sometimes the backslash is legit https://sourceforge.net/p/webadmin/bugs/5056/
This commit is contained in:
@@ -37,7 +37,9 @@ else {
|
||||
|
||||
# Save included files
|
||||
$in{'include'} =~ s/\r//g;
|
||||
$in{'include'} =~ s/\\/\//g;
|
||||
if ($in{'include'} !~ /^\\\|/) {
|
||||
$in{'include'} =~ s/\\/\//g;
|
||||
}
|
||||
@include = split(/\n+/, $in{'include'});
|
||||
$inc = &find("Include", $fileset->{'members'});
|
||||
if (!$inc) {
|
||||
@@ -55,7 +57,9 @@ else {
|
||||
|
||||
# Save excluded files
|
||||
$in{'exclude'} =~ s/\r//g;
|
||||
$in{'exclude'} =~ s/\\/\//g;
|
||||
if ($in{'exclude'} !~ /^\\\|/) {
|
||||
$in{'exclude'} =~ s/\\/\//g;
|
||||
}
|
||||
@exclude = split(/\n+/, $in{'exclude'});
|
||||
$exc = &find("Exclude", $fileset->{'members'});
|
||||
if (!$exc && @exclude) {
|
||||
|
||||
Reference in New Issue
Block a user