popupStream" speichern
- $streamHash->{HELPER}{STREAM} =~ s/["']//g;
- $streamHash->{HELPER}{STREAM} =~ s/\s+/ /g;
+ $streamHash->{HELPER}{STREAM} =~ s/["']//gx;
+ $streamHash->{HELPER}{STREAM} =~ s/\s+/ /gx;
$streamHash->{HELPER}{STREAMACTIVE} = 1; # Statusbit wenn ein Stream aktiviert ist
}
$ret .= "
";
@@ -8119,17 +8262,17 @@ sub streamDev {
}
}
- } elsif ($fmt =~ /hls/) {
+ } elsif ($fmt =~ /hls/x) {
# es ist ein .m3u8-File bzw. ein Link dorthin zu übergeben
my $cam = AttrVal($camname, "alias", $camname);
my $m3u8 = AttrVal($camname, "hlsStrmObject", "");
if( $m3u8 =~ m/^\s*(.*)\s*$/s ) {
$m3u8 = $1;
- $m3u8 =~ s/\$NAME/$camname/g;
+ $m3u8 =~ s/\$NAME/$camname/gx;
}
my $d = $camname;
- $d =~ s/\./_/; # Namensableitung zur javascript Codeanpassung
+ $d =~ s/\./_/x; # Namensableitung zur javascript Codeanpassung
if(!$m3u8) {
$cause = "You have to specify attribute \"hlsStrmObject\" in Camera $cam !";
@@ -8166,12 +8309,12 @@ sub streamDev {
}
}
- } elsif ($fmt =~ /switched/) {
+ } elsif ($fmt =~ /switched/x) {
my $wltype = $hash->{HELPER}{WLTYPE};
$link = $hash->{HELPER}{LINK};
- if($link && $wltype =~ /image|iframe|video|base64img|embed|hls/) {
- if($wltype =~ /image/) {
+ if($link && $wltype =~ /image|iframe|video|base64img|embed|hls/x) {
+ if($wltype =~ /image/x) {
if(ReadingsVal($camname, "SVSversion", "8.2.3-5828") eq "8.2.3-5828" && ReadingsVal($camname, "CamVideoType", "") !~ /MJPEG/) {
$ret .= " Because SVS version 8.2.3-5828 is running you cannot see the MJPEG-Stream. Please upgrade to a higher SVS version !
";
} else {
@@ -8185,7 +8328,7 @@ sub streamDev {
}
$ret .= "$imgstop ";
$ret .= $imgblank;
- if($hash->{HELPER}{RUNVIEW} =~ /live_fw/) {
+ if($hash->{HELPER}{RUNVIEW} =~ /live_fw/x) {
if(ReadingsVal($camname, "Record", "Stop") eq "Stop") {
# Aufnahmebutton endlos Start
$ret .= "$imgrecendless ";
@@ -8196,7 +8339,7 @@ sub streamDev {
$ret .= "$imgdosnap ";
}
$ret .= " | ";
- if(AttrVal($camname,"ptzPanel_use",1) && $hash->{HELPER}{RUNVIEW} =~ /live_fw/) {
+ if(AttrVal($camname,"ptzPanel_use",1) && $hash->{HELPER}{RUNVIEW} =~ /live_fw/x) {
my $ptz_ret = ptzPanel($camname,$strmdev,'',$ftui);
if($ptz_ret) {
$ret .= "$ptz_ret | ";
@@ -8212,7 +8355,7 @@ sub streamDev {
$ret .= " | " if(AttrVal($camname,"ptzPanel_use",0));
}
- } elsif ($wltype =~ /iframe/) {
+ } elsif ($wltype =~ /iframe/x) {
if(!$ftui) {
$ret .= " |