Skip to content

Commit d29d72f

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

File tree

6 files changed

+18
-17
lines changed

6 files changed

+18
-17
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
## Software Watchdog CCU Addon – hm-watchdog
2-
<img src="https://github.com/jens-maus/hm-watchdog/raw/master/www/public/img/logo-large.png" align=right>
2+
<img src="https://github.com/homematic-community/hm-watchdog/raw/master/www/public/img/logo-large.png" align=right>
33

4-
[![Current Release](https://img.shields.io/github/release/jens-maus/hm-watchdog.svg?style=flat-square)](https://github.com/jens-maus/hm-watchdog/releases/latest)
5-
[![Downloads](https://img.shields.io/github/downloads/jens-maus/hm-watchdog/latest/total.svg?style=flat-square)](https://github.com/jens-maus/Rhm-watchdog/releases/latest)
6-
[![Issues](https://img.shields.io/github/issues/jens-maus/hm-watchdog.svg?style=flat-square)](https://github.com/jens-maus/hm-watchdog/issues)
7-
![License](https://img.shields.io/github/license/jens-maus/hm-watchdog.svg?style=flat-square)
4+
[![Current Release](https://img.shields.io/github/release/homematic-community/hm-watchdog.svg?style=flat-square)](https://github.com/homematic-community/hm-watchdog/releases/latest)
5+
[![Downloads](https://img.shields.io/github/downloads/homematic-community/hm-watchdog/latest/total.svg?style=flat-square)](https://github.com/homematic-community/hm-watchdog/releases/latest)
6+
[![Issues](https://img.shields.io/github/issues/homematic-community/hm-watchdog.svg?style=flat-square)](https://github.com/homematic-community/hm-watchdog/issues)
7+
![License](https://img.shields.io/github/license/homematic-community/hm-watchdog.svg?style=flat-square)
88
[![Donate](https://img.shields.io/badge/donate-PayPal-green.svg?style=flat-square)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RAQSDY9YNZVCL)
99

1010
A HomeMatic CCU Addon package implementing a software watchdog functionality to monitor all important services a CCU devices requires to function correctly. As soon as the watchdog recognizes a service to be down it will try to restart the service. If a service couldn't be restarted three times in a row the software watchdog will also automatically reboot the CCU device. Furthermore, the watchdog will use the standard CCU notification system to notify the administrator of services that were found to be non-working
@@ -46,11 +46,11 @@ A HomeMatic CCU Addon package implementing a software watchdog functionality to
4646
Please note that the use of this Addon with RaspberryMatic is **NOT** required anymore and discouraged/not adviced anymore since it will otherwise cause problems!
4747

4848
## Installation
49-
1. Download of recent Addon-Release from [Github](https://github.com/jens-maus/hm-watchdog/releases)
49+
1. Download of recent Addon-Release from [Github](https://github.com/homematic-community/hm-watchdog/releases)
5050
2. Installation of Addon archive (```hm-watchdog-X.X.tar.gz```) via WebUI interface of CCU device
5151

5252
## Support
53-
In case of problems/bugs or if you have any feature requests please feel free to open a [new ticket](https://github.com/jens-maus/hm-watchdog/issues) at the Github project pages. To seek for help for configuring/using this Addon please use the following german language based fora thread: [hm-watchdog](http://homematic-forum.de/forum/viewtopic.php?f=18&t=31581).
53+
In case of problems/bugs or if you have any feature requests please feel free to open a [new ticket](https://github.com/homematic-community/hm-watchdog/issues) at the Github project pages. To seek for help for configuring/using this Addon please use the following german language based fora thread: [hm-watchdog](http://homematic-forum.de/forum/viewtopic.php?f=18&t=31581).
5454

5555
## License
5656
The use and development of this addon is licensed under the conditions of the [Apache License 2.0](https://opensource.org/licenses/Apache-2.0).

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.8
1+
0.9

rc.d/hm-watchdog

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ case "$1" in
4949
info)
5050
echo "Info: <b>Watchdog Addon</b><br>"
5151
echo "Info: (c) 2015-2018 Jens Maus<br>"
52-
echo "Info: <a href='http://github.com/jens-maus/hm-watchdog'>http://github.com/jens-maus/hm-watchdog</a>"
52+
echo "Info: <a href='http://github.com/homematic-community/hm-watchdog'>http://github.com/homematic-community/hm-watchdog</a>"
5353
echo "Version: $(cat ${WWWDIR}/VERSION)"
5454
echo "Name: hm-watchdog"
5555
echo "Operations: uninstall restart"

www/en.index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@
100100

101101
<b>Installation as CCU Addon</b>
102102
<ol>
103-
<li>Download of recent Addon-Release from <a href="https://github.com/jens-maus/hm-watchdog/releases">Github</a></li>
103+
<li>Download of recent Addon-Release from <a href="https://github.com/homematic-community/hm-watchdog/releases">Github</a></li>
104104
<li>Installation of Addon archive (<code>hm-watchdog-X.X.tar.gz</code>) via WebUI interface of CCU device</li>
105105
</ol>
106106

107107
<b>Support</b>
108108
<p>
109-
In case of problems/bugs or if you have any feature requests please feel free to open a <a href="https://github.com/jens-maus/hm-watchdog/issues">new ticket</a> at the Github project pages. To seek for help for configuring/using this Addon please use the following german language based fora thread: <a href="http://homematic-forum.de/forum/viewtopic.php?f=18&t=31581">hm-watchdog</a>.
109+
In case of problems/bugs or if you have any feature requests please feel free to open a <a href="https://github.com/homematic-community/hm-watchdog/issues">new ticket</a> at the Github project pages. To seek for help for configuring/using this Addon please use the following german language based fora thread: <a href="http://homematic-forum.de/forum/viewtopic.php?f=18&t=31581">hm-watchdog</a>.
110110
</p>
111111

112112
<b>License</b>

www/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@
9898

9999
<b>Installation als CCU-Addon</b>
100100
<ol>
101-
<li>Download des aktuellen Addon-Releases von <a href="https://github.com/jens-maus/hm-watchdog/releases">Github</a></li>
101+
<li>Download des aktuellen Addon-Releases von <a href="https://github.com/homematic-community/hm-watchdog/releases">Github</a></li>
102102
<li>Installation des Addon-Paketes (<code>hm-watchdog-X.X.tar.gz</code>) mittels WebUI Oberfläche der CCU</li>
103103
</ol>
104104

105105
<b>Support</b>
106106
<p>
107-
Bei Problemen/Bugs oder Ideen zur Weiterentwicklung bitte unter dem Github-Projekt ein Ticket <a href="https://github.com/jens-maus/hm-watchdog/issues">erstellen</a>. Für Hilfe bei der Benutzung/Konfiguration des Addons kann man unter folgendem deutschsprachigen Forumbeitrag hilfe suchen: <a href="http://homematic-forum.de/forum/viewtopic.php?f=18&t=31581">hm-watchdog</a>.
107+
Bei Problemen/Bugs oder Ideen zur Weiterentwicklung bitte unter dem Github-Projekt ein Ticket <a href="https://github.com/homematic-community/hm-watchdog/issues">erstellen</a>. Für Hilfe bei der Benutzung/Konfiguration des Addons kann man unter folgendem deutschsprachigen Forumbeitrag hilfe suchen: <a href="http://homematic-forum.de/forum/viewtopic.php?f=18&t=31581">hm-watchdog</a>.
108108
</p>
109109

110110
<b>Lizenz</b>

www/update-check.cgi

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
#!/bin/tclsh
22

3-
set checkURL "https://raw.githubusercontent.com/jens-maus/hm-watchdog/master/VERSION"
4-
set downloadURL "https://github.com/jens-maus/hm-watchdog/releases/latest"
3+
set checkURL "https://raw.githubusercontent.com/homematic-community/hm-watchdog/master/VERSION"
4+
set downloadURL "https://github.com/homematic-community/hm-watchdog/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)