1
0

Ensure not using 'online_repository' as pluginPath

This commit is contained in:
Garvin Hicking
2007-06-05 11:44:34 +00:00
parent c8572b58f7
commit 494c19ce4a

View File

@ -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)) {