mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-03-12 08:57 am

[dw-free] Only allow implicit .bml extension on the www-equivalent domain.

[commit: http://hg.dwscoalition.org/dw-free/rev/afff3cf416df]

Only allow implicit .bml extension on the www-equivalent domain.

Patch by [staff profile] mark.

Files modified:
  • cgi-bin/Apache/LiveJournal.pm
--------------------------------------------------------------------------------
diff -r 27074c6faaee -r afff3cf416df cgi-bin/Apache/LiveJournal.pm
--- a/cgi-bin/Apache/LiveJournal.pm	Thu Mar 12 08:22:23 2009 +0000
+++ b/cgi-bin/Apache/LiveJournal.pm	Thu Mar 12 08:57:00 2009 +0000
@@ -301,7 +301,7 @@ sub trans
         # this is a fancy transform - basically, if the file exists with a BML extension,
         # then assume we're trying to get to it.  (this allows us to write URLs without the
         # extension...)
-        if ( -e "$LJ::HTDOCS/$uri.bml" ) {
+        if ( $host eq $LJ::DOMAIN_WEB && -e "$LJ::HTDOCS/$uri.bml" ) {
             $r->uri( $uri = "$uri.bml" );
             return $bml_handler->( "$LJ::HTDOCS/$uri" );
         }
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org