From 0d95428ddfedc30fdc1a10538c8f354f8db1d366 Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Wed, 11 Oct 2006 18:59:31 +0000 Subject: [PATCH] Add google ping safer check for "filter" extension --- include/compat.inc.php | 2 +- .../serendipity_event_weblogping.php | 2 +- .../serendipity_event_weblogping/servicesdb_de.inc.php | 6 ++++++ .../serendipity_event_weblogping/servicesdb_en.inc.php | 8 +++++++- .../serendipity_event_weblogping/servicesdb_tn.inc.php | 6 ------ 5 files changed, 15 insertions(+), 9 deletions(-) diff --git a/include/compat.inc.php b/include/compat.inc.php index cf79b9ec..ad5f90b4 100644 --- a/include/compat.inc.php +++ b/include/compat.inc.php @@ -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); } diff --git a/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php b/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php index 5162250d..3abb92d2 100644 --- a/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php +++ b/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php @@ -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', diff --git a/plugins/serendipity_event_weblogping/servicesdb_de.inc.php b/plugins/serendipity_event_weblogping/servicesdb_de.inc.php index 086750dd..17ec3c81 100644 --- a/plugins/serendipity_event_weblogping/servicesdb_de.inc.php +++ b/plugins/serendipity_event_weblogping/servicesdb_de.inc.php @@ -54,5 +54,11 @@ 'host' => 'api.my.yahoo.com', 'path' => '/RPC2' ), + + array( + 'name' => 'Google', + 'host' => 'blogsearch.google.com', + 'path' => '/ping/RPC2' + ), ); ?> diff --git a/plugins/serendipity_event_weblogping/servicesdb_en.inc.php b/plugins/serendipity_event_weblogping/servicesdb_en.inc.php index 59bb91f0..4781ce92 100644 --- a/plugins/serendipity_event_weblogping/servicesdb_en.inc.php +++ b/plugins/serendipity_event_weblogping/servicesdb_en.inc.php @@ -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' + ), + ); ?> diff --git a/plugins/serendipity_event_weblogping/servicesdb_tn.inc.php b/plugins/serendipity_event_weblogping/servicesdb_tn.inc.php index 880230e8..dda025bc 100644 --- a/plugins/serendipity_event_weblogping/servicesdb_tn.inc.php +++ b/plugins/serendipity_event_weblogping/servicesdb_tn.inc.php @@ -47,12 +47,6 @@ 'path' => '/RPC2' ), - array( - 'name' => 'blogg.de', - 'host' => 'xmlrpc.blogg.de', - 'path' => '/' - ), - array( 'name' => 'Yahoo!', 'host' => 'api.my.yahoo.com',