[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
mark.
Files modified:
Only allow implicit .bml extension on the www-equivalent domain.
Patch by
![[staff profile]](https://www.dreamwidth.org/img/silk/identity/user_staff.png)
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" ); } --------------------------------------------------------------------------------