mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 13:26:02 +00:00
70_Pushover: use more pleasant regex for supplementary URLs
git-svn-id: https://svn.fhem.de/fhem/trunk@9170 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e736075f74
commit
a4e09a72b4
@ -414,7 +414,8 @@ sub Pushover_ReceiveCommand($$$) {
|
|||||||
$values->{message} );
|
$values->{message} );
|
||||||
readingsBulkUpdate( $hash, "cbPrio_" . $values->{cbNr},
|
readingsBulkUpdate( $hash, "cbPrio_" . $values->{cbNr},
|
||||||
$values->{priority} );
|
$values->{priority} );
|
||||||
readingsBulkUpdate( $hash, "cbAck_" . $values->{cbNr}, "0" );
|
readingsBulkUpdate( $hash, "cbAck_" . $values->{cbNr},
|
||||||
|
"0" );
|
||||||
|
|
||||||
if ( $values->{device} ne "" ) {
|
if ( $values->{device} ne "" ) {
|
||||||
readingsBulkUpdate( $hash, "cbDev_" . $values->{cbNr},
|
readingsBulkUpdate( $hash, "cbDev_" . $values->{cbNr},
|
||||||
@ -688,8 +689,7 @@ sub Pushover_SetMessage {
|
|||||||
my $url;
|
my $url;
|
||||||
|
|
||||||
if ( $callback eq ""
|
if ( $callback eq ""
|
||||||
|| $values{action} !~
|
|| $values{action} !~ /^http[s]?:\/\/.*$/ )
|
||||||
/(?:https?:\/\/)(?:[\w]+\.)([a-zA-Z\.]{2,63})([\/\w\.-]*)*\/?/ )
|
|
||||||
{
|
{
|
||||||
$url = $values{action};
|
$url = $values{action};
|
||||||
$values{expire} = "";
|
$values{expire} = "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user