Skip to content

Commit a701c57

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

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# XML-API CCU Addon
22

3-
[![Release](https://img.shields.io/github/release/hobbyquaker/XML-API.svg)](https://github.com/hobbyquaker/XML-API/releases/latest)
4-
[![Downloads](https://img.shields.io/github/downloads/hobbyquaker/XML-API/latest/total.svg)](https://github.com/hobbyquaker/XML-API/releases/latest)
5-
[![Issues](https://img.shields.io/github/issues/hobbyquaker/XML-API.svg)](https://github.com/hobbyquaker/XML-API/issues)
3+
[![Release](https://img.shields.io/github/release/homematic-community/XML-API.svg)](https://github.com/homematic-community/XML-API/releases/latest)
4+
[![Downloads](https://img.shields.io/github/downloads/homematic-community/XML-API/latest/total.svg)](https://github.com/homematic-community/XML-API/releases/latest)
5+
[![Issues](https://img.shields.io/github/issues/homematic-community/XML-API.svg)](https://github.com/homematic-community/XML-API/issues)
66
[![License](https://img.shields.io/badge/license-GPL%203.0-green.svg)](https://opensource.org/licenses/GPL-3.0)
77

88
A HomeMatic CCU Addon implementing a xml request functionality as an interface to all homematic deviced available to a CCU device. This addon provides useful scripts that can be accessed via a HTTP request to a CCU device and allows to query and set all e.g. room- and devicetype names.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.21
1+
1.22

xmlapi/update-check.cgi

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
#!/bin/tclsh
22

3-
set checkURL "https://raw.githubusercontent.com/hobbyquaker/XML-API/master/VERSION"
4-
set downloadURL "https://github.com/hobbyquaker/XML-API/releases/latest"
3+
set checkURL "https://raw.githubusercontent.com/homematic-community/XML-API/master/VERSION"
4+
set downloadURL "https://github.com/homematic-community/XML-API/releases"
55

66
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)