<table><tr><td style="">jtamate updated this revision to Diff 37500.<br />jtamate edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-zbdrigz4qolc4wv/">(Show Details)</a><br />jtamate edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-yl7xoi2b5jqya3i/">(Show Details)</a><br />jtamate added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D13676">View Revision</a></tr></table><br /><div><div><p>The url in the lineedit is get from KUriFilterData, and it didn't normalize the paths, allowing trailing slashes.<br />
Include 4 new tests and fix 2 (the ones with // in the middle of the urls).</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">L</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Normalize the paths in KUriFilterData.<br />
Normalize the path in cdUp (l</span>eave only the last / in the url<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">)</span> before going up.</div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>Now even if I write urls like <span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"><br />
<br />
```<br />
</span>/d/c<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">//</span>/////////////////////<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">//</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"><br />
```<br />
when I press cdUp it goes up to /d/ and when I press Enter</span>, <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">when I press cdUp it goes up to /d/</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">the url stored in the history is /d/c/</span>.<br />
</div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D13676?vs=36513&id=37500">https://phabricator.kde.org/D13676?vs=36513&id=37500</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D13676">https://phabricator.kde.org/D13676</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/kdiroperatortest.cpp<br />
autotests/kurifiltertest.cpp<br />
src/filewidgets/kdiroperator.cpp<br />
src/widgets/kurifilter.cpp</div></div></div><br /><div><strong>To: </strong>jtamate, dfaure, Frameworks<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>