2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 01:14:19 +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:
jpawlowski 2015-08-30 14:38:48 +00:00
parent e736075f74
commit a4e09a72b4

View File

@ -414,7 +414,8 @@ sub Pushover_ReceiveCommand($$$) {
$values->{message} );
readingsBulkUpdate( $hash, "cbPrio_" . $values->{cbNr},
$values->{priority} );
readingsBulkUpdate( $hash, "cbAck_" . $values->{cbNr}, "0" );
readingsBulkUpdate( $hash, "cbAck_" . $values->{cbNr},
"0" );
if ( $values->{device} ne "" ) {
readingsBulkUpdate( $hash, "cbDev_" . $values->{cbNr},
@ -688,8 +689,7 @@ sub Pushover_SetMessage {
my $url;
if ( $callback eq ""
|| $values{action} !~
/(?:https?:\/\/)(?:[\w]+\.)([a-zA-Z\.]{2,63})([\/\w\.-]*)*\/?/ )
|| $values{action} !~ /^http[s]?:\/\/.*$/ )
{
$url = $values{action};
$values{expire} = "";