| Summary: | konq: form input field length limit is too short | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | missive |
| Component: | khtml forms | Assignee: | Konqueror Bugs <konqueror-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | maksim |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | form with field full | ||
|
Description
missive
2005-11-11 16:21:42 UTC
Created attachment 13387 [details]
form with field full
Confirming the bug report, I was unable to enter an ssh public key in a form field at the savannah.org site. The key was 1115 characters long. I could only input up to the 1024th character. I had no problem entering the same key using Firefox/Mozilla. Confirmed on 3.5 branch r575787 SVN commit 589303 by orlovich:
Don't needlessly limit length of line inputs.
BUG:116132
M +1 -1 html/html_formimpl.cpp
M +2 -2 rendering/render_form.cpp
--- branches/KDE/3.5/kdelibs/khtml/html/html_formimpl.cpp #589302:589303
@@ -1398,7 +1398,7 @@
if (!attr->val()) break;
bool ok;
const int ml = attr->val()->toInt(&ok);
- if (ml > 0 && ml < 1024)
+ if (ml > 0 && ml < 32767)
m_maxLen = ml;
else if (ok && ml <= 0)
m_maxLen = 0;
--- branches/KDE/3.5/kdelibs/khtml/rendering/render_form.cpp #589302:589303
@@ -538,8 +538,8 @@
void RenderLineEdit::updateFromElement()
{
int ml = element()->maxLength();
- if ( ml < 0 || ml > 1024 )
- ml = 1024;
+ if ( ml < 0 )
+ ml = 32767;
if ( widget()->maxLength() != ml ) {
widget()->setMaxLength( ml );
|