On Thu, May 22, 2008 at 09:56:54 -0000,
[EMAIL PROTECTED] wrote:
> Log:
> Adding double quote as illegal character in Windows file names, thanks to
> ilor for pointing this out.
> {
> return c == '/' || c == '\\' || c == ':'
> #ifdef WIN32
> + || c == '?' || c == '|' || c == '<' || c == '>' || c == '*' || c == '"'
> #endif
> ;
> }
Wouldn't it be better to have a whitelist of allowed characters?
You probably don't want control characters in the filename either.
Rather than try to figure out all of the problem characters on different
systems, it would seem easier to just figure out which ones we want to
allow.
_______________________________________________
Wesnoth-dev mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-dev