fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-11-11 05:07 am

[bml] move cgi-bin/lj*.pl files into proper modules (in cgi-bin/LJ)

[commit: http://hg.dwscoalition.org/bml/rev/9b3137e16763]

http://bugs.dwscoalition.org/show_bug.cgi?id=1726

Fix: tweak BML config loader to accept .pm files as well as .pl.

Patch by [personal profile] kareila.

Files modified:
  • lib/Apache/BML.pm
--------------------------------------------------------------------------------
diff -r 254743d55258 -r 9b3137e16763 lib/Apache/BML.pm
--- a/lib/Apache/BML.pm	Tue Mar 29 10:31:35 2011 +0800
+++ b/lib/Apache/BML.pm	Fri Nov 11 13:07:46 2011 +0800
@@ -527,7 +527,7 @@
         $conf = $FileConfig{$ffile};
     }
 
-    if (!$conf && $file =~ /\.pl$/) {
+    if (!$conf && $file =~ /\.p[lm]$/) {
         return () unless -e $ffile;
         my $conf = $conf_pl = {};
         do $ffile;
--------------------------------------------------------------------------------