Fixed bug 1344334.
[matthijs/upstream/blosxom.git] / blosxom.cgi
index aeccd187eaec2610c0f3e9418dcf54c5ccd0368e..1233ea4b55ed0a2a8cd56b5914ceff356e288018 100755 (executable)
@@ -147,6 +147,7 @@ while (<DATA>) {
 # Plugins: Start
 if ( $plugin_dir and opendir PLUGINS, $plugin_dir ) {
   foreach my $plugin ( grep { /^\w+$/ && -f "$plugin_dir/$_"  } sort readdir(PLUGINS) ) {
+    next if ($plugin =~ /~$/);   # Ignore emacs backups
     my($plugin_name, $off) = $plugin =~ /^\d*(\w+?)(_?)$/;
     my $on_off = $off eq '_' ? -1 : 1;
     require "$plugin_dir/$plugin";