Hi,
I'm using FileMan v 1.256. I would like to view a file with filenames '&', for example, a&b.txt. I noticed that there is a function in /GT/FileMan/Commands.pm called _safe_file, it always check the filename. I already change that line from
return -1 if ($self->{cfg}->{filename_check} and $file !~ m,^([-\w/. ]+)$,);
to
return -1 if ($self->{cfg}->{filename_check} and $file !~ m,^([&-\w/. ]+)$,);
So that i can upload and delete it. But I don't know what to change for viewing/opening a file w/ '&'.
Thanks
Wallace
I'm using FileMan v 1.256. I would like to view a file with filenames '&', for example, a&b.txt. I noticed that there is a function in /GT/FileMan/Commands.pm called _safe_file, it always check the filename. I already change that line from
return -1 if ($self->{cfg}->{filename_check} and $file !~ m,^([-\w/. ]+)$,);
to
return -1 if ($self->{cfg}->{filename_check} and $file !~ m,^([&-\w/. ]+)$,);
So that i can upload and delete it. But I don't know what to change for viewing/opening a file w/ '&'.
Thanks
Wallace