Menu

#90 Remove content-type header from index.php

closed-fixed
None
5
2006-10-18
2006-10-18
Tim Gerundt
No

You can remove the line "Header("Content-type:
text/html; Charset=$charset");" from the index.php
file, since this header is in "html/header.php" too.
Also the line "require_once './proxy.php';" is in
"html/header.php" too.

I only don't like, that your "proxy.php" code in
"html/header.php" do a brutal exit() if the file don't
exsits.

-------------------------8<-------------------------
--- C:/Temp/nocc/webmail/index.php.org Fri Sep 01
22:28:19 2006
+++ C:/Temp/nocc/webmail/index.php Wed Oct 18 12:06:34 2006
@@ -17,8 +17,6 @@
header("Location:
".$conf->base_url."action.php?action=cookie");
}
require_once './common.php';
-require_once './proxy.php';
-Header("Content-type: text/html; Charset=$charset");
require ('./html/header.php');
?>
<script type="text/javascript">
------------------------->8-------------------------

Greetings,
Tim

Discussion

  • Anonymous

    Anonymous - 2006-10-18
    • assigned_to: nobody --> goddess_skuld
    • status: open --> closed-fixed
     
  • Anonymous

    Anonymous - 2006-10-18

    Logged In: YES
    user_id=529507

    Fixed in CVS.

    It'll be included in next release.

    But you can download daily snapshots at :
    http://nocc.sourceforge.net/download/

    Thanks for the patch.

     

Log in to post a comment.