~cadence/bliz

90d02bcc0cc44e93941e458bfbfaacb35743e824 — Tim Clifford 1 year, 6 months ago ba42020 main
Fix bug with test req_query

`test` requires quotes around variables with =, or it can fail when
the variable is missing (a list of 0). In this case it would with an
ugly error message.

I'm not 100% sure that this change is necessary - req_query should in
theory always contain one item - but there's no harm in adding the
double quotes.
1 files changed, 1 insertions(+), 1 deletions(-)

M src/cgi.fish
M src/cgi.fish => src/cgi.fish +1 -1
@@ 41,7 41,7 @@ end

# check for file source mode
set source_mode false
if test $req_query = "source=1"
if test "$req_query" = "source=1"
    set source_mode true
end