From d29d72f64a053164f10ecaebe0c3668d3a637254 Mon Sep 17 00:00:00 2001 From: Jens Maus Date: Fri, 17 Jun 2022 21:13:42 +0200 Subject: [PATCH] limit the update-check.cgi to parse for cmd=download and not parse arbitrary query string options. --- README.md | 14 +++++++------- VERSION | 2 +- rc.d/hm-watchdog | 2 +- www/en.index.html | 4 ++-- www/index.html | 4 ++-- www/update-check.cgi | 9 +++++---- 6 files changed, 18 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 4c204c8..db5089b 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ ## Software Watchdog CCU Addon – hm-watchdog - + -[![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) -[![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) -[![Issues](https://img.shields.io/github/issues/jens-maus/hm-watchdog.svg?style=flat-square)](https://github.com/jens-maus/hm-watchdog/issues) -![License](https://img.shields.io/github/license/jens-maus/hm-watchdog.svg?style=flat-square) +[![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) +[![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) +[![Issues](https://img.shields.io/github/issues/homematic-community/hm-watchdog.svg?style=flat-square)](https://github.com/homematic-community/hm-watchdog/issues) +![License](https://img.shields.io/github/license/homematic-community/hm-watchdog.svg?style=flat-square) [![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) 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 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! ## Installation -1. Download of recent Addon-Release from [Github](https://github.com/jens-maus/hm-watchdog/releases) +1. Download of recent Addon-Release from [Github](https://github.com/homematic-community/hm-watchdog/releases) 2. Installation of Addon archive (```hm-watchdog-X.X.tar.gz```) via WebUI interface of CCU device ## Support -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). +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). ## License 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). diff --git a/VERSION b/VERSION index aec258d..b63ba69 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.8 +0.9 diff --git a/rc.d/hm-watchdog b/rc.d/hm-watchdog index 0b12573..3141c4c 100755 --- a/rc.d/hm-watchdog +++ b/rc.d/hm-watchdog @@ -49,7 +49,7 @@ case "$1" in info) echo "Info: Watchdog Addon
" echo "Info: (c) 2015-2018 Jens Maus
" - echo "Info: http://github.com/jens-maus/hm-watchdog" + echo "Info: http://github.com/homematic-community/hm-watchdog" echo "Version: $(cat ${WWWDIR}/VERSION)" echo "Name: hm-watchdog" echo "Operations: uninstall restart" diff --git a/www/en.index.html b/www/en.index.html index f6237f8..6860ebd 100644 --- a/www/en.index.html +++ b/www/en.index.html @@ -100,13 +100,13 @@ Installation as CCU Addon
    -
  1. Download of recent Addon-Release from Github
  2. +
  3. Download of recent Addon-Release from Github
  4. Installation of Addon archive (hm-watchdog-X.X.tar.gz) via WebUI interface of CCU device
Support

-In case of problems/bugs or if you have any feature requests please feel free to open a new ticket 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. +In case of problems/bugs or if you have any feature requests please feel free to open a new ticket 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.

License diff --git a/www/index.html b/www/index.html index f14aa59..1aad95b 100644 --- a/www/index.html +++ b/www/index.html @@ -98,13 +98,13 @@ Installation als CCU-Addon
    -
  1. Download des aktuellen Addon-Releases von Github
  2. +
  3. Download des aktuellen Addon-Releases von Github
  4. Installation des Addon-Paketes (hm-watchdog-X.X.tar.gz) mittels WebUI Oberfläche der CCU
Support

-Bei Problemen/Bugs oder Ideen zur Weiterentwicklung bitte unter dem Github-Projekt ein Ticket erstellen. Für Hilfe bei der Benutzung/Konfiguration des Addons kann man unter folgendem deutschsprachigen Forumbeitrag hilfe suchen: hm-watchdog. +Bei Problemen/Bugs oder Ideen zur Weiterentwicklung bitte unter dem Github-Projekt ein Ticket erstellen. Für Hilfe bei der Benutzung/Konfiguration des Addons kann man unter folgendem deutschsprachigen Forumbeitrag hilfe suchen: hm-watchdog.

Lizenz diff --git a/www/update-check.cgi b/www/update-check.cgi index b1c97d8..1bc0f5e 100755 --- a/www/update-check.cgi +++ b/www/update-check.cgi @@ -1,14 +1,15 @@ #!/bin/tclsh -set checkURL "https://raw.githubusercontent.com/jens-maus/hm-watchdog/master/VERSION" -set downloadURL "https://github.com/jens-maus/hm-watchdog/releases/latest" +set checkURL "https://raw.githubusercontent.com/homematic-community/hm-watchdog/master/VERSION" +set downloadURL "https://github.com/homematic-community/hm-watchdog/releases" 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 } } }