[quake3-commits] [ioquake/ioq3] 67dace: Escape quotes for sv_dlURL in shell so it doesn't ...

Zack Middleton zack at cloemail.com
Fri Jul 21 00:25:31 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/ioquake/ioq3
  Commit: 67dace6c209c91fac5861846364e62c1c67aab77
      https://github.com/ioquake/ioq3/commit/67dace6c209c91fac5861846364e62c1c67aab77
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-07-20 (Thu, 20 Jul 2017)

  Changed paths:
    M misc/linux/start_server.sh
    M misc/osx/start_server.sh

  Log Message:
  -----------
  Escape quotes for sv_dlURL in shell so it doesn't become "http:"

    q3ded +set sv_dlURL "http://example.org"

The shell removes the quotes but makes the content be a single argument
for progam args. Quake 3 concatenates all the program args and splits
lines at + or newlines. Then Quake 3 parses them using a tokenizer
that skips unquoted C comments beginning with //. This results in
the cvar being set to "http:".

Escape the quotes so they are passed to the program and the tokenizer
knows not to skip C comments.

    q3ded +set sv_dlURL \"http://example.org\"




More information about the quake3-commits mailing list