mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-23 12:24:28 +02:00
daily-psk: encode ssid and pass in url
Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
parent
a66713d093
commit
6a048d5681
1 changed files with 3 additions and 1 deletions
|
@ -1,11 +1,13 @@
|
||||||
#!rsc
|
#!rsc
|
||||||
# RouterOS script: daily-psk
|
# RouterOS script: daily-psk
|
||||||
# Copyright (c) 2013-2019 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2013-2019 Christian Hesse <mail@eworm.de>
|
||||||
|
# Michael Gisbers <michael@gisbers.de>
|
||||||
#
|
#
|
||||||
# update daily PSK (pre shared key)
|
# update daily PSK (pre shared key)
|
||||||
|
|
||||||
:global Identity;
|
:global Identity;
|
||||||
:global DailyPskMatchComment;
|
:global DailyPskMatchComment;
|
||||||
|
:global UrlEncode;
|
||||||
|
|
||||||
:global SendNotification;
|
:global SendNotification;
|
||||||
|
|
||||||
|
@ -67,7 +69,7 @@
|
||||||
:set Seen ($Seen, $Ssid);
|
:set Seen ($Seen, $Ssid);
|
||||||
|
|
||||||
:local Url ("https://www.eworm.de/cgi-bin/cqrlogo-wifi.cgi" . \
|
: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";
|
:local Attach "qrcode-daily.png";
|
||||||
|
|
||||||
:do {
|
:do {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue