apache: disallow backslashes in rewrite_arg type release_20190105-2
authorClinton Ebadi <clinton@unknownlamer.org>
Sat, 5 Jan 2019 23:02:49 +0000 (18:02 -0500)
committerClinton Ebadi <clinton@unknownlamer.org>
Sat, 5 Jan 2019 23:02:49 +0000 (18:02 -0500)
backlashes can be used to create invalid config (e.g. using one at the
end of the line), and don't seem to be particularly useful
here. Disallow entirely for now.

src/plugins/apache.sml

index 9d180ab..aecc2e1 100644 (file)
@@ -97,7 +97,7 @@ val _ = Env.type_one "proxy_reverse_target"
 
 val _ = Env.type_one "rewrite_arg"
        Env.string
-       (CharVector.all (fn ch => (Char.isGraph ch) andalso not (List.exists (fn c => ch = c) [ #"[", #"]", #",", #"\"", #"'", #"=", #":" ])))
+       (CharVector.all (fn ch => (Char.isGraph ch) andalso not (List.exists (fn c => ch = c) [ #"[", #"]", #",", #"\"", #"'", #"=", #":", "\\" ])))
 
 val _ = Env.type_one "suexec_flag"
        Env.bool