]> git.mjollnir.org Git - s9y.git/commitdiff
fix comparison logic
authorgarvinhicking <garvinhicking>
Tue, 18 Oct 2005 08:07:40 +0000 (08:07 +0000)
committergarvinhicking <garvinhicking>
Tue, 18 Oct 2005 08:07:40 +0000 (08:07 +0000)
plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php

index 26414aff90c4300d88066c49c7c78f94af34c9ba..08fe308945bbba26640709750a65089f7220fae3 100644 (file)
@@ -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;
         }