--- /usr/share/webapps/mythweb/0.21_p17573/htdocs/mythweb.pl    2008-09-04 21:48:24.000000000 +0100
+++ /var/www/paddington.config/htdocs/mythweb/mythweb.pl        2008-09-05 00:19:24.000000000 +0100
@@ -43,8 +43,7 @@

 # Work around a lighttpd bug:  http://trac.lighttpd.net/trac/ticket/420
     foreach my $key (keys %ENV) {
-        next if ($key eq uc($key));
-        $ENV{$key} ||= $ENV{uc($key)};
+        $ENV{lc($key)} = $ENV{$key} if ($key =~ m/DB_/);
     }

 # Connect to the database

