<table><tr><td style="">mikhailru created this revision.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />mikhailru requested review of this revision.
</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/D18853">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>At present, when one tries to share files with<br />
certain names via Telegram using Dolphin's share menu,<br />
Dolphin crashes (names contain unbalanced quotes) or a wrong<br />
name is passed to Telegram (names with spaces). The root cause<br />
is KShell::splitArgs returning empty QStringList or doing<br />
wrong splits for the above classes of names. This patch<br />
postpones the substitution of "%u" with the actual filename<br />
until splitting is done, thus avoiding undesired behavior.</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">Create test files:</li>
</ol>
<p>$ echo test | tee test\ .txt | tee test\'.txt > test\".txt</p>
<ol class="remarkup-list" start="2">
<li class="remarkup-list-item">Start Dolphin and share the files via Telegram.</li>
</ol>
<ol class="remarkup-list" start="3">
<li class="remarkup-list-item">No errors and crashes should occur in the process.</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R495 Purpose Library</div></div></div><br /><div><strong>BRANCH</strong><div><div>telegram-sharing-fix (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D18853">https://phabricator.kde.org/D18853</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/plugins/telegram/telegramplugin.cpp</div></div></div><br /><div><strong>To: </strong>mikhailru<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>