<table><tr><td style="">malibushko created this revision.<br />malibushko added a reviewer: SGOrava.<br />malibushko added a project: Falkon.<br />Herald added a subscriber: falkon.<br />malibushko 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/D28153">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>BUG 414295<br />
The problem is some sites does not provide 'name' HTML attribute for form inputs.<br />
The folliwng attribute is required for 'completeFormData' Falkon script, but<br />
if the name is empty, the key (see source code) is also empty, and the expression<br />
(name == key) is always evaluates to true, which leads to misfilling the form.<br />
To fix this we just need to check that 'name' is not empty.<br />
To test enter <a href="https://my.amfoss.in/login" class="remarkup-link" target="_blank" rel="noreferrer">https://my.amfoss.in/login</a> (enter somethink and click save). There must not be any fields filled.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R875 Falkon</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28153">https://phabricator.kde.org/D28153</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/lib/tools/scripts.cpp</div></div></div><br /><div><strong>To: </strong>malibushko, SGOrava<br /><strong>Cc: </strong>falkon, allknow, grune, akilgus, siraj_qazi, saishm, anmolgautam, SGOrava, iodelay, spoorun, ptabis, navarromorales, clivej, mparillo<br /></div>