From: Kevin Scaldeferri Date: Fri, 25 Nov 2005 20:03:52 +0000 (+0000) Subject: Fixed bug 1344334. X-Git-Tag: debian/2.1.2-2~131 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=e1f940ffa67c33220409d768d156f7ed94a56eb6;p=pkg%2Fblosxom.git Fixed bug 1344334. Skip any plugin ending in "~", i.e. emacs backup files. --- diff --git a/blosxom.cgi b/blosxom.cgi index aeccd18..1233ea4 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -147,6 +147,7 @@ while () { # 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";