Author: sveinung
Date: Tue Jan 26 19:56:34 2016
New Revision: 31615

URL: http://svn.gna.org/viewcvs/freeciv?rev=31615&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:
    branches/S2_5/client/options.c

Modified: branches/S2_5/client/options.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/options.c?rev=31615&r1=31614&r2=31615&view=diff
==============================================================================
--- branches/S2_5/client/options.c      (original)
+++ branches/S2_5/client/options.c      Tue Jan 26 19:56:34 2016
@@ -4235,7 +4235,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
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to