Add google ping

safer check for "filter" extension
This commit is contained in:
Garvin Hicking 2006-10-11 18:59:31 +00:00
parent f5f0a66acc
commit 0674c0256f
5 changed files with 15 additions and 9 deletions

View File

@ -101,7 +101,7 @@ if (!isset($_SERVER)) {
$_SERVER = &$HTTP_SERVER_VARS;
}
if (extension_loaded('filter') && input_name_to_filter(ini_get('filter.default')) !== FILTER_UNSAFE_RAW) {
if (extension_loaded('filter') && function_exists('input_name_to_filter') && input_name_to_filter(ini_get('filter.default')) !== FILTER_UNSAFE_RAW) {
foreach ($_POST as $key => $value) {
$_POST[$key] = input_get(INPUT_POST, $key, FILTER_UNSAFE_RAW);
}

View File

@ -22,7 +22,7 @@ class serendipity_event_weblogping extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_WEBLOGPING_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Serendipity Team');
$propbag->add('version', '1.06');
$propbag->add('version', '1.07');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',

View File

@ -54,5 +54,11 @@
'host' => 'api.my.yahoo.com',
'path' => '/RPC2'
),
array(
'name' => 'Google',
'host' => 'blogsearch.google.com',
'path' => '/ping/RPC2'
),
);
?>

View File

@ -58,6 +58,12 @@
array(
'name' => 'Blogbot.dk',
'host' => 'blogbot.dk',
'path' => '/io/xml-rpc.php')
'path' => '/io/xml-rpc.php'),
array(
'name' => 'Google',
'host' => 'blogsearch.google.com',
'path' => '/ping/RPC2'
),
);
?>

View File

@ -47,12 +47,6 @@
'path' => '/RPC2'
),
array(
'name' => 'blogg.de',
'host' => 'xmlrpc.blogg.de',
'path' => '/'
),
array(
'name' => 'Yahoo!',
'host' => 'api.my.yahoo.com',