From: garvinhicking Date: Tue, 18 Oct 2005 08:07:40 +0000 (+0000) Subject: fix comparison logic X-Git-Tag: 0.9~56 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=61eb42090fd2467ca4807c69211be5b8255a8e09;p=s9y.git fix comparison logic --- diff --git a/plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php b/plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php index 26414af..08fe308 100644 --- a/plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php +++ b/plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php @@ -387,7 +387,7 @@ class serendipity_plugin_remoterss extends serendipity_plugin { function urlcheck($uri) { // These two substring comparisons are faster than one regexp. - if ('http://' != substr($uri, 0, 7) || 'https://' != substr($uri, 0, 8)) { + if ('http://' != substr($uri, 0, 7) && 'https://' != substr($uri, 0, 8)) { return false; }