<div>I have created an issue for it here:</div><div><a href="http://bugs.typo3.org/view.php?id=14873">http://bugs.typo3.org/view.php?id=14873</a></div><div><br></div><div><br></div><div><br></div><div>Description below</div>
<div>-------------------------</div><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">One of the first pieces of code in typo3_src/index.php is used (inconsistently) several other places in the typo3 codebase.<br>
<br>define('PATH_thisScript',str_replace('//','/', str_replace('\\','/', (PHP_SAPI=='cgi'||PHP_SAPI=='isapi' ||PHP_SAPI=='cgi-fcgi')&&($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED'])? ($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED']):($_SERVER['ORIG_SCRIPT_FILENAME']?$_SERVER['ORIG_SCRIPT_FILENAME']:$_SERVER['SCRIPT_FILENAME']))));<br>
<br><br>I think I had to use isset() in some ajax code for it to work, like this.<br><br>define('PATH_thisScript',str_replace('//','/', str_replace('\\','/', (PHP_SAPI=='cgi'||PHP_SAPI=='isapi' ||PHP_SAPI=='cgi-fcgi')&&(isset($_SERVER['ORIG_PATH_TRANSLATED'])?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED'])? (isset($_SERVER['ORIG_PATH_TRANSLATED'])?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED']):(isset($_SERVER['ORIG_SCRIPT_FILENAME'])?$_SERVER['ORIG_SCRIPT_FILENAME']:$_SERVER['SCRIPT_FILENAME']))));<br>
<br><br>It solved a nasty php error that I had<br>PHP Notice: Undefined index: ORIG_SCRIPT_FILENAME in /some/long/path/file.php on line 1234, <br>referer: <a href="http://example.com/index.php?id=4321" style="color: rgb(51, 51, 51); text-decoration: none; ">http://example.com/index.php?id=4321</a></span></div>
<div>-------------------------</div><div><br></div><div><br></div><div><br></div><div><br></div><div>I was told to post my message here on the typo3 english list. </div><div><br></div><div><br></div>-- <br>Best regards<br>
Simon Strandgaard<br>