Closed Bug 453815 Opened 16 years ago Closed 16 years ago

Autocomplete with maxlength

Categories

(Firefox :: Address Bar, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

VERIFIED DUPLICATE of bug 444728

People

(Reporter: geetar, Unassigned)

Details

User-Agent:       Opera/9.52 (Windows NT 5.1; U; pl)
Build Identifier: 3.0.1

Let's create a textbox and enter a text there with length of e.g. 255 chars.
Firefox remembers this form data.
Let's then set the maxlength of the textbox to e.g. 125 chars.
Using autocomplete functionality I am still able to enter those 255 chars into textbox, which is wrong.

Reproducible: Always

Steps to Reproduce:
1. Steps are in the details section, just create a html page for yourself.
2.
3.
Actual Results:  
In my application too long text was submitted to DB and query crashed.

Expected Results:  
Do not let me enter too long text.
> In my application too long text was submitted to DB and query crashed.

You need to do server-side checks too, so malicious users (who might use modified web browsers) can't screw up your database...
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Verified dup
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.