diff options
author | Michael Gisbers <michael@gisbers.de> | 2019-03-06 14:43:44 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-03-06 14:45:26 +0100 |
commit | 6a048d56814c38e82c709d845aa8eb2a65319afd (patch) | |
tree | ff4c1972c9e0dc39be1ebd5f76874298f21af450 /daily-psk | |
parent | a66713d093d59141ab23e1a282ae9eddb2e7db22 (diff) |
daily-psk: encode ssid and pass in url
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'daily-psk')
-rw-r--r-- | daily-psk | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,11 +1,13 @@ #!rsc # RouterOS script: daily-psk # Copyright (c) 2013-2019 Christian Hesse <mail@eworm.de> +# Michael Gisbers <michael@gisbers.de> # # 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 { |