fix: HttpProxy no longer processes macros in proxied content

This commit is contained in:
Doug Bell 2007-05-02 16:44:02 +00:00
parent ea75fd538f
commit 7ebea75e33
2 changed files with 17 additions and 15 deletions

View file

@ -29,6 +29,8 @@
http://www.plainblack.com/bugs/tracker/too-many-directories-in-rss-cache
- fix: Help link broken for navigation template (perlDreamer Consulting, LLC)
http://www.plainblack.com/bugs/tracker/help-link-broken-for-navigation-template
- fix: HttpProxy no longer processes macros in proxied content
http://www.plainblack.com/bugs/tracker/weird-characters-in-webgui.log-caused-by-http-proxy
7.3.15
- Added more documentation to WebGUI.pm

View file

@ -419,21 +419,21 @@ sub view {
#-------------------------------------------------------------------
sub www_view {
my $self = shift;
return $self->session->privilege->noAccess() unless $self->canView;
$self->prepareView;
my $output = $self->view;
if ($self->session->http->getMimeType ne "text/html") {
return $output;
} else {
$self->session->http->sendHeader;
my $style = $self->processStyle("~~~");
my ($head, $foot) = split("~~~",$style);
$self->session->output->print($head, 1);
$self->session->output->print($output);
$self->session->output->print($foot, 1);
return "chunked";
}
my $self = shift;
return $self->session->privilege->noAccess() unless $self->canView;
$self->prepareView;
my $output = $self->view;
if ($self->session->http->getMimeType ne "text/html") {
return $output;
} else {
$self->session->http->sendHeader;
my $style = $self->processStyle("~~~");
my ($head, $foot) = split("~~~",$style);
$self->session->output->print($head);
$self->session->output->print($output, 1); # Do not process macros
$self->session->output->print($foot);
return "chunked";
}
}
1;