[TYPO3-core] showpic.php bug

Bernhard Kraft kraftb at kraftb.at
Thu Sep 15 12:04:22 CEST 2005


-----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-----



More information about the TYPO3-team-core mailing list