Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   HTML-File as attachement, posted by Becher on Tue Apr 5 22:39:20 2005 
    icon2.gif   Re: HTML-File as attachement, posted by Stefan Ritt on Tue Apr 5 22:45:22 2005 
       icon2.gif   Re: HTML-File as attachement, posted by Becher on Wed Apr 6 14:45:22 2005 
          icon2.gif   Re: HTML-File as attachement, posted by Stefan Ritt on Wed Apr 6 14:56:09 2005 
             icon2.gif   Re: HTML-File as attachement, posted by Stefan Ritt on Wed Apr 6 21:26:19 2005 
                icon14.gif   Re: HTML-File as attachement, posted by Becher on Wed Apr 6 23:02:47 2005 
                   icon2.gif   Re: HTML-File as attachement, posted by Stefan Ritt on Thu Apr 7 22:18:04 2005 
Message ID: 1056     Entry time: Tue Apr 5 22:45:22 2005     In reply to: 1055     Reply to this: 1058
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category:   OS:   ELOG Version:  
Subject: Re: HTML-File as attachement 
> When I upload a HTML-File as attachement the file is shown as the
> HTML-source and not as the formatted text. Is there a possibility to see the
> HTML-attachements as formatted text like images are shown as images?

I could turn the ASCII display off, but the result is not always what you want.
If you have a HTML file without the <html>, <header> and <body> tags, it's ok.
But if you have these tags in your HTML (and this is the normal case), the
resulting page has these tags twice, once from the ELOG page and once from the
attachment. This confuses some browsers, so the resulting page might look
strange. A solution would be to strip these tags from the attachment, but for
that I would have to interprete the HTML attachment completely, which is too
much work.

So I will turn the ASCII display off in the next release, but be prepared to see
some nonexpected results.
ELOG V3.1.5-3fb85fa6