forked from blallo/rss-bridge
[core] keep compatibility with nameBridge and nameFormat naming scheme
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
7e0ac1a6b6
commit
3c089c1b11
1 changed files with 12 additions and 0 deletions
12
index.php
12
index.php
|
@ -96,8 +96,20 @@ try{
|
|||
if($action === 'display' && !empty($bridge)){
|
||||
unset($_REQUEST['action']);
|
||||
unset($_REQUEST['bridge']);
|
||||
// DEPRECATED: 'nameBridge' scheme is replaced by 'name' in bridge parameter values
|
||||
// this is to keep compatibility until futher complete removal
|
||||
if(($pos=strpos($bridge,'Bridge'))===(strlen($bridge)-strlen('Bridge'))){
|
||||
$bridge=substr($bridge,0,$pos);
|
||||
}
|
||||
|
||||
$format = $_REQUEST['format'];
|
||||
unset($_REQUEST['format']);
|
||||
// DEPRECATED: 'nameFormat' scheme is replaced by 'name' in format parameter values
|
||||
// this is to keep compatibility until futher complete removal
|
||||
if(($pos=strpos($format,'Format'))===(strlen($format)-strlen('Format'))){
|
||||
$format=substr($format,0,$pos);
|
||||
}
|
||||
|
||||
|
||||
// whitelist control
|
||||
if(!Bridge::isWhitelisted($whitelist_selection, $bridge)) {
|
||||
|
|
Loading…
Reference in a new issue