Ensure not using 'online_repository' as pluginPath
This commit is contained in:
@ -112,6 +112,10 @@ class serendipity_plugin_api {
|
||||
$pluginPath = preg_replace('@^(/)@', '', $pluginPath);
|
||||
$pluginPath = str_replace(array('..', "\\"), array('', '/'), serendipity_db_escape_string($pluginPath));
|
||||
|
||||
if ($pluginPath == 'online_repository') {
|
||||
$pluginPath = $key;
|
||||
}
|
||||
|
||||
$rs = serendipity_db_query("SELECT MAX(sort_order) as sort_order_max FROM {$serendipity['dbPrefix']}plugins WHERE placement = '$default_placement'", true, 'num');
|
||||
|
||||
if (is_array($rs)) {
|
||||
|
Reference in New Issue
Block a user