<p dir="auto">I downloaded the Symfony Standard Edition 2.3.4 and placed the following code in <code class="notranslate">app_dev.php</code>:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="echo $request-&gt;getUri();"><pre class="notranslate"><span class="pl-k">echo</span> <span class="pl-s1"><span class="pl-c1">$</span>request</span>-&gt;<span class="pl-en">getUri</span>();</pre></div>
<p dir="auto">Then I visited the following url: <code class="notranslate">http://localhost/RSA-Programm/web/app_dev.php?module=search&amp;type=user&amp;func=form</code>. The output is <code class="notranslate">http://localhost/RSA-Programm/web/app_dev.php/?func=form&amp;module=search&amp;type=user</code>. Notice the additional slash after <code class="notranslate">app_dev.php</code>.</p>
<p dir="auto">Refs <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19161307" data-permission-text="Title is private" data-url="https://github.com/zikula/core/issues/1094" data-hovercard-type="issue" data-hovercard-url="/zikula/core/issues/1094/hovercard" href="https://github.com/zikula/core/issues/1094">zikula/core#1094</a>. The same problem occurs in Zikula. Routing is not yet enabled so all urls are like the one above (with <code class="notranslate">index.php</code>). This causes the url in the profiler to be wrong:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/18292211cb15ca0efe6fb1b8b240e7cc646d8dddf56cfc780dfbe96264718ef9/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f323134353039322f313130343839302f34613037663932302d313930662d313165332d386232662d6136373365313138623836632e706e67"><img src="https://camo.githubusercontent.com/18292211cb15ca0efe6fb1b8b240e7cc646d8dddf56cfc780dfbe96264718ef9/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f323134353039322f313130343839302f34613037663932302d313930662d313165332d386232662d6136373365313138623836632e706e67" alt="image" data-canonical-src="https://f.cloud.github.com/assets/2145092/1104890/4a07f920-190f-11e3-8b2f-a673e118b86c.png" style="max-width: 100%;"></a></p>
<p dir="auto">There is a problem with the path info in the <code class="notranslate">Request</code> class.</p>
<p dir="auto">Given a request to <code class="notranslate">http://localhost/symfony-standard/app_dev.php</code>, the info in the Request are as follows:<br>
Request::getBaseUrl() returns <code class="notranslate">/symfony-standard/app_dev.php</code> (correct)<br>
Request::getPathInfo() returns <code class="notranslate">/</code> which is wrong because it must be empty ``.</p>
<p dir="auto">The reason is that <code class="notranslate">Request::getBaseUrl() . Request::getPathInfo()</code> must represent the real request path. Since it is lying about the real path, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="4130771" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/3958" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/3958/hovercard" href="https://github.com/symfony/symfony/pull/3958">#3958</a> generates the incorrect relative path based on the wrong info.</p>
<p dir="auto">So there is a problem when the path info should be empty but never is (it defaults to <code class="notranslate">/</code>).<br>
I think it's this commit that should be reverted: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/symfony/symfony/commit/62d09b8fb2c4c5468dd19b016c593bc2629cd6fb/hovercard" href="https://github.com/symfony/symfony/commit/62d09b8fb2c4c5468dd19b016c593bc2629cd6fb"><tt>62d09b8</tt></a></p>
<p dir="auto">ping <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fabpot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fabpot">@fabpot</a></p>