[TYPO3-core] showpic.php bug

Kasper Skårhøj kasper2005 at typo3.com
Thu Sep 15 14:27:44 CEST 2005


For $HTTP_ENV_VARS["_"], now use:

$_ENV['_']?$_ENV['_']:$_SERVER['_']

- kasper


On Thu, 2005-09-15 at 12:04, Bernhard Kraft wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Bernhard Kraft wrote:
> 
> | I couldn't reproduce it today as the only setup where I had returnmail configured
> | was broken somehow ... i will fix that tomorrow and report back if it is reproducible.
> 
> Mostly as expected:
> If I don't have a call to select_db in returnmail.phpsh I get a warning about an invalid
> mysql result resource.
> 
> But another thing caused that it was broken:
> $dir = dirname($HTTP_ENV_VARS["_"]);
> 
> the environment variable "_" isn't set any more (pherhaps because of new exim version - at
> least it is set when calling the script from shell, but not from procmail)
> 
> My solution is to replace the above setting of $dir by:
> $dir = getcwd();
> 
> which always should work ...
> 
> 
> greets,
> Bernhard
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
> 
> iD8DBQFDKUclIl4dkVkDMFkRAsj9AJ41IsyJ+Q9el5WEmnWgMgs42ua3zQCgnWGi
> ZlGOXmkZoIXGePj7P8++kA0=
> =JbVT
> -----END PGP SIGNATURE-----
> _______________________________________________
> Typo3-team-core mailing list
> Typo3-team-core at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-core
-- 
- kasper

TYPO3 Association Chairman
-----

"Don't Mess With Texas!"




More information about the TYPO3-team-core mailing list