Author: baufo
Date: Thu May 22 11:39:37 2008
New Revision: 26763

URL: http://svn.gna.org/viewcvs/wesnoth?rev=26763&view=rev
Log:
Fixing bug #11665: Filename saves allow illegal characters resulting in game 
crash.

Modified:
    trunk/src/dialogs.cpp

Modified: trunk/src/dialogs.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/dialogs.cpp?rev=26763&r1=26762&r2=26763&view=diff
==============================================================================
--- trunk/src/dialogs.cpp (original)
+++ trunk/src/dialogs.cpp Thu May 22 11:39:37 2008
@@ -222,7 +222,11 @@
 
 bool is_illegal_file_char(char c)
 {
-       return c == '/' || c == '\\' || c == ':';
+       return c == '/' || c == '\\' || c == ':'
+       #ifdef WIN32
+       || c == '?' || c == '|' || c == '<' || c == '>' || c == '*'
+       #endif
+       ;
 }
 
 int get_save_name(display & disp,const std::string& message, const 
std::string& txt_label,


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to