Skip to content

Commit 94651d0

Browse files
committed
limit the update-check.cgi to parse for cmd=download and not parse arbitrary query string options.
1 parent be69f35 commit 94651d0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4
1+
2.5

www/update-check.cgi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ catch {
77
set input $env(QUERY_STRING)
88
set pairs [split $input &]
99
foreach pair $pairs {
10-
if {0 != [regexp "^(\[^=]*)=(.*)$" $pair dummy varname val]} {
11-
set $varname $val
10+
if {$pair == "cmd=download"} {
11+
set cmd "download"
12+
break
1213
}
1314
}
1415
}

0 commit comments

Comments
 (0)