mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 01:14:19 +00:00
02_RSS: fix (query is ? instead of &)
git-svn-id: https://svn.fhem.de/fhem/trunk@8936 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bb6ebc107e
commit
946c2cb0fe
@ -219,7 +219,7 @@ RSS_splitRequest($) {
|
||||
|
||||
# http://hostname:8083/fhem/rss
|
||||
# http://hostname:8083/fhem/rss/myDeviceName.rss
|
||||
# http://hostname:8083/fhem/rss/myDeviceName.jpg&t=47110.815
|
||||
# http://hostname:8083/fhem/rss/myDeviceName.jpg?t=47110.815
|
||||
# |--------- url ----------| |---name --| ext |--query--|
|
||||
|
||||
my ($request) = @_;
|
||||
@ -228,7 +228,7 @@ RSS_splitRequest($) {
|
||||
# http://hostname:8083/fhem/rss/myDeviceName.jpg
|
||||
# http://hostname:8083/fhem/rss/myDeviceName.png
|
||||
# http://hostname:8083/fhem/rss/myDeviceName.html
|
||||
use constant REGEXP => '^.*\/rss\/([^\/]*)\.(jpg|png|rss|html)(&(.*))?$';
|
||||
use constant REGEXP => '^.*\/rss\/([^\/]*)\.(jpg|png|rss|html)(\?(.*))?$';
|
||||
if($request =~ REGEXP) {
|
||||
return ($1,$2,$4);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user