]> git.mjollnir.org Git - s9y.git/commitdiff
Use md5 for superlong uris
authorgarvinhicking <garvinhicking>
Thu, 5 Jul 2007 11:10:51 +0000 (11:10 +0000)
committergarvinhicking <garvinhicking>
Thu, 5 Jul 2007 11:10:51 +0000 (11:10 +0000)
plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php

index e78252d2edf9d5515c20c2f4551658aaf241f390..3c2d8e7ae00d3d5d68a0d1dca9e0d23780cd1835 100644 (file)
@@ -257,7 +257,7 @@ class serendipity_plugin_remoterss extends serendipity_plugin {
         $propbag->add('description',   PLUGIN_REMOTERSS_BLAHBLAH);
         $propbag->add('stackable',     true);
         $propbag->add('author',        'Udo Gerhards, Richard Thomas Harrison');
-        $propbag->add('version',       '1.9');
+        $propbag->add('version',       '1.10');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
@@ -454,7 +454,7 @@ class serendipity_plugin_remoterss extends serendipity_plugin {
         }
 
         if (trim($rssuri)) {
-            $feedcache = $serendipity['serendipityPath'] . 'templates_c/remoterss_cache_' . preg_replace('@[^a-z0-9]*@i', '', $rssuri) . '.dat';
+            $feedcache = $serendipity['serendipityPath'] . 'templates_c/remoterss_cache_' . md5(preg_replace('@[^a-z0-9]*@i', '', $rssuri)) . '.dat';
             if (!file_exists($feedcache) || filesize($feedcache) == 0 || filemtime($feedcache) < (time() - $cachetime)) {
                 $this->debug('Cachefile does not existing.');
                 if (!$this->urlcheck($rssuri)) {