<?php
my $temp = $file->read;
if ($file->type eq 'html' && $temp !~ /<base href=/i)
{
if ($temp =~ /<(head)>/i) {
my $url = $login->url;
$temp =~ s/<(head)>/<$1>n<base href="$url">/i;
} else {
$temp = "<base href="".$login->url."">n".$temp;
}
}
if ($file->type eq 'text' || $login->user->config('disable_wysiwyg') == 1)
{
$temp =~ s/&/&/g;
$temp =~ s/</</g;
$temp =~ s/>/>/g;
}
$html .= $temp;
?>