mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 19:30:31 +00:00
70_Pushbullet.pm: allow skype: in links
git-svn-id: https://svn.fhem.de/fhem/trunk@8252 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f4a2179a35
commit
f2ff207ea9
@ -163,7 +163,8 @@ sub Pushbullet_Set($@) {
|
|||||||
($link, $title, $deviceNick, $deviceIden, $deviceEmail) = Pushbullet_checkArgs($hash, $cmd, @setValues);
|
($link, $title, $deviceNick, $deviceIden, $deviceEmail) = Pushbullet_checkArgs($hash, $cmd, @setValues);
|
||||||
|
|
||||||
# Link check
|
# Link check
|
||||||
return "URL is not valid. Correct sytax: set " . $name . " link http://www.google.com [| Title | Device] " if( $link !~ /^(http|https):\/\// );
|
return "URL is not valid. Correct sytax: set " . $name . " link http://www.google.com [| Title | Device] "
|
||||||
|
if( $link !~ /^(http|https):\/\/.*/ && $link !~ /^skype:.*/ );
|
||||||
|
|
||||||
# Push geht an Device
|
# Push geht an Device
|
||||||
$jsonHash = {'type' => 'link', 'device_iden' => $deviceIden, 'title' => $title, 'url' => $link};
|
$jsonHash = {'type' => 'link', 'device_iden' => $deviceIden, 'title' => $title, 'url' => $link};
|
||||||
|
Loading…
Reference in New Issue
Block a user