From 6a048d56814c38e82c709d845aa8eb2a65319afd Mon Sep 17 00:00:00 2001 From: Michael Gisbers Date: Wed, 6 Mar 2019 14:43:44 +0100 Subject: daily-psk: encode ssid and pass in url Signed-off-by: Christian Hesse --- daily-psk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'daily-psk') diff --git a/daily-psk b/daily-psk index b90ff04..f05af1c 100644 --- a/daily-psk +++ b/daily-psk @@ -1,11 +1,13 @@ #!rsc # RouterOS script: daily-psk # Copyright (c) 2013-2019 Christian Hesse +# Michael Gisbers # # update daily PSK (pre shared key) :global Identity; :global DailyPskMatchComment; +:global UrlEncode; :global SendNotification; @@ -67,7 +69,7 @@ :set Seen ($Seen, $Ssid); :local Url ("https://www.eworm.de/cgi-bin/cqrlogo-wifi.cgi" . \ - "?scale=8&level=1&ssid=" . $Ssid . "&pass=" . $NewPsk); + "?scale=8&level=1&ssid=" . [ $UrlEncode $Ssid ] . "&pass=" . [ $UrlEncode $NewPsk ]); :local Attach "qrcode-daily.png"; :do { -- cgit v1.2.3-70-g09d2