Author: sveinung
Date: Tue Jan 26 19:54:00 2016
New Revision: 31613
URL: http://svn.gna.org/viewcvs/freeciv?rev=31613&view=rev
Log:
clients: handle spaces in server setting strings.
The auto generated server options gui uses the "set" command to change
server settings. The server will stop reading an unquoted string value
after the first space.
Always place string server setting values inside quotation marks.
See bug #24346
Modified:
trunk/client/options.c
Modified: trunk/client/options.c
URL:
http://svn.gna.org/viewcvs/freeciv/trunk/client/options.c?rev=31613&r1=31612&r2=31613&view=diff
==============================================================================
--- trunk/client/options.c (original)
+++ trunk/client/options.c Tue Jan 26 19:54:00 2016
@@ -4624,7 +4624,7 @@
return FALSE;
}
- send_chat_printf("/set %s %s", psoption->name, str);
+ send_chat_printf("/set %s \"%s\"", psoption->name, str);
return TRUE;
}
_______________________________________________
Freeciv-commits mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-commits