<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(&#39;PATH_thisScript&#39;,str_replace(&#39;//&#39;,&#39;/&#39;, str_replace(&#39;\\&#39;,&#39;/&#39;, (PHP_SAPI==&#39;cgi&#39;||PHP_SAPI==&#39;isapi&#39; ||PHP_SAPI==&#39;cgi-fcgi&#39;)&amp;&amp;($_SERVER[&#39;ORIG_PATH_TRANSLATED&#39;]?$_SERVER[&#39;ORIG_PATH_TRANSLATED&#39;]:$_SERVER[&#39;PATH_TRANSLATED&#39;])? ($_SERVER[&#39;ORIG_PATH_TRANSLATED&#39;]?$_SERVER[&#39;ORIG_PATH_TRANSLATED&#39;]:$_SERVER[&#39;PATH_TRANSLATED&#39;]):($_SERVER[&#39;ORIG_SCRIPT_FILENAME&#39;]?$_SERVER[&#39;ORIG_SCRIPT_FILENAME&#39;]:$_SERVER[&#39;SCRIPT_FILENAME&#39;]))));<br>
<br><br>I think I had to use isset() in some ajax code for it to work, like this.<br><br>define(&#39;PATH_thisScript&#39;,str_replace(&#39;//&#39;,&#39;/&#39;, str_replace(&#39;\\&#39;,&#39;/&#39;, (PHP_SAPI==&#39;cgi&#39;||PHP_SAPI==&#39;isapi&#39; ||PHP_SAPI==&#39;cgi-fcgi&#39;)&amp;&amp;(isset($_SERVER[&#39;ORIG_PATH_TRANSLATED&#39;])?$_SERVER[&#39;ORIG_PATH_TRANSLATED&#39;]:$_SERVER[&#39;PATH_TRANSLATED&#39;])? (isset($_SERVER[&#39;ORIG_PATH_TRANSLATED&#39;])?$_SERVER[&#39;ORIG_PATH_TRANSLATED&#39;]:$_SERVER[&#39;PATH_TRANSLATED&#39;]):(isset($_SERVER[&#39;ORIG_SCRIPT_FILENAME&#39;])?$_SERVER[&#39;ORIG_SCRIPT_FILENAME&#39;]:$_SERVER[&#39;SCRIPT_FILENAME&#39;]))));<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>