Author: sveinung
Date: Tue Jan 26 19:56:04 2016
New Revision: 31614

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

Modified: branches/S2_6/client/options.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/options.c?rev=31614&r1=31613&r2=31614&view=diff
==============================================================================
--- branches/S2_6/client/options.c      (original)
+++ branches/S2_6/client/options.c      Tue Jan 26 19:56:04 2016
@@ -4375,7 +4375,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