From 2f2f15b7aabe19e45dad9bddb7eb7f4394aa1e21 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Mon, 04 Sep 2006 08:26:30 -0400
Subject: [PATCH] Little improvements for message parsing and encoding
---
index.php | 22 ++++++++++++++--------
1 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/index.php b/index.php
index ff73a00..68c0f17 100644
--- a/index.php
+++ b/index.php
@@ -2,7 +2,7 @@
/*
+-----------------------------------------------------------------------+
| RoundCube Webmail IMAP Client |
- | Version 0.1-20060901 |
+ | Version 0.1-20060904 |
| |
| Copyright (C) 2005-2006, RoundCube Dev. - Switzerland |
| Licensed under the GNU GPL |
@@ -40,7 +40,7 @@
*/
-define('RCMAIL_VERSION', '0.1-20060901');
+define('RCMAIL_VERSION', '0.1-20060904');
// define global vars
$CHARSET = 'UTF-8';
@@ -87,12 +87,6 @@
// set PEAR error handling
// PEAR::setErrorHandling(PEAR_ERROR_TRIGGER, E_USER_NOTICE);
-// use gzip compression if supported
-if (function_exists('ob_gzhandler') && !ini_get('zlib.output_compression'))
- ob_start('ob_gzhandler');
-else
- ob_start();
-
// catch some url/post parameters
$_task = get_input_value('_task', RCUBE_INPUT_GPC);
@@ -104,6 +98,18 @@
if (!empty($_GET['_remote']))
$REMOTE_REQUEST = TRUE;
+
+
+// set output buffering
+if ($_action != 'get' && $_action != 'viewsource')
+ {
+ // use gzip compression if supported
+ if (function_exists('ob_gzhandler') && !ini_get('zlib.output_compression'))
+ ob_start('ob_gzhandler');
+ else
+ ob_start();
+ }
+
// start session with requested task
rcmail_startup($_task);
--
Gitblit v1.9.1