Skip to content

Commit

Permalink
limit the update-check.cgi to parse for cmd=download and not parse ar…
Browse files Browse the repository at this point in the history
…bitrary query string options.
  • Loading branch information
jens-maus committed Jun 17, 2022
1 parent be69f35 commit 94651d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4
2.5
5 changes: 3 additions & 2 deletions www/update-check.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ catch {
set input $env(QUERY_STRING)
set pairs [split $input &]
foreach pair $pairs {
if {0 != [regexp "^(\[^=]*)=(.*)$" $pair dummy varname val]} {
set $varname $val
if {$pair == "cmd=download"} {
set cmd "download"
break
}
}
}
Expand Down

0 comments on commit 94651d0

Please sign in to comment.