[dev] PATCH IMP_Contents
Michael Cochrane
mike@graftonhall.co.nz
Fri, 2 Aug 2002 09:44:00 +0100
The pactch fixes IMP_Contents to work with both CGI and non-CGI installations...
under CGI script_name contains the path to the php executable... see
http://www.graftonhall.co.nz/test.php
for a CGI phpinfo() screen.
This may fix the corrupt image attachements mentioned recently as thats when
caused me to notice this bug, when someone sent me some images...
- Mike :-)
Index: imp/lib/Contents.php
===================================================================
RCS file: /httpd/horde/imp/lib/Contents.php,v
retrieving revision 1.48
diff -I$Horde -I$Revision -I$Date -u -r1.48 Contents.php
--- imp/lib/Contents.php 2002/07/30 22:32:20 1.48
+++ imp/lib/Contents.php 2002/08/02 08:33:05
@@ -957,7 +957,7 @@
*/
function viewAsAttachment()
{
- if (stristr($_SERVER['SCRIPT_NAME'], 'view.php')) {
+ if (stristr($_SERVER['REQUEST_URI'], 'view.php')) {
return true;
} else {
return false;
--
-------------------------------------------------------------------------
This mail sent from Mike's CVS HEAD install of IMP: http://horde.org/imp/