mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
fhem.pl: warning+stacktrace for wrong devspec is now conditional (Forum #128362)
git-svn-id: https://svn.fhem.de/fhem/trunk@26247 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0f46db5567
commit
5471a00d94
@ -1360,8 +1360,8 @@ devspec2array($;$$)
|
||||
};
|
||||
|
||||
if($@) {
|
||||
Log 1, "devspec2array $name: $@";
|
||||
stacktrace();
|
||||
warn "devspec2array $name: $@";
|
||||
stacktrace() if(AttrVal("global", "stacktrace", 0));
|
||||
return $name;
|
||||
}
|
||||
}
|
||||
|
@ -298,7 +298,7 @@ FW_jqueryReadyFn()
|
||||
var sa = location.search.substring(1).split("&");
|
||||
for(var i = 0; i < sa.length; i++) {
|
||||
var kv = sa[i].split("=");
|
||||
FW_urlParams[kv[0]] = kv[1];
|
||||
FW_urlParams[kv[0]] = decodeURIComponent(kv[1]);
|
||||
}
|
||||
|
||||
$("select[id^=sel_attr],select[id^=sel_set],select[id^=sel_get]")
|
||||
@ -1290,7 +1290,9 @@ FW_longpoll()
|
||||
}
|
||||
|
||||
if(filter == "") {
|
||||
if(FW_urlParams.room) filter="room="+FW_urlParams.room;
|
||||
if(FW_urlParams.room)
|
||||
filter="room="+FW_urlParams.room
|
||||
.replace(/[[\]().+*?]/g, function(r){return '\\'+r});
|
||||
if(FW_urlParams.detail) filter=FW_urlParams.detail;
|
||||
}
|
||||
|
||||
@ -1302,7 +1304,8 @@ FW_longpoll()
|
||||
if(content) {
|
||||
var room = content.getAttribute("room");
|
||||
if(room)
|
||||
filter="room="+room;
|
||||
filter="room="+room
|
||||
.replace(/[[\]().+*?]/g, function(r){return '\\'+r});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user