Closed Bug 283813 Opened 20 years ago Closed 20 years ago

Single-line textbox uses pasted newline

Categories

(Toolkit :: Form Manager, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 286804

People

(Reporter: hopeseekr, Assigned: bugs)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050218 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050220 Firefox/1.0+

I recently tried to paste a DNS server into godaddy.com's single-line textbox. 
The *exact* paste was
"
ns1.myxssl.com" [notice the blank line?]

Godaddy choked on this respone, really hard, and my DNS record got corrupted,
requiring GoDaddy technical support to intervene.  Upon visiting the same form
later to investigate, the autocomplete feature produced the result
"[]ns1.myxssl.com" [] being a solid black box.  Upon accepting this value, the
textbox became ... corrupted is the best description.  The very top of text
could be seen at the very bottom of it, but backspace did not work.

This is for FireFox Trunk daily build 20 Feb

Reproducible: Always

Steps to Reproduce:
1. Copy text with a newline at the beginning
2. Paste into a single-line textbox
3. Submit the form

Actual Results:  
Site choked on data, hard...The newline was sent along with the text.

Expected Results:  
FireFox should have ignored the newline altoghether.
Version: unspecified → Trunk
For a workaround, open the URL about:config and change
editor.singleLine.pasteNewlines to 3 (yes there are reasons why this isn't
default, read that bug for that). Also goaddy.com should fix their server script
to detect such invalid input.

*** This bug has been marked as a duplicate of 77932 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
I actually dispute this decision.  This is *clearly* a firefox daily build bug
that has cropped up since the release of 1.0, as it does not occur in that version.

Additionally, in the bug report that this is supposedly a duplicate of, the
result of pasting

---
http://
x
---

is "http:// x", where in my case this is also true...However.  When you paste
---
\n(newline)
http://
----
you actualyl get "\nhttp://" as a result, which looks like (on win32)
"[]http://" and servers choke on it.

Hope this makes it clear.  This also is not a website-specific issue, as I don't
know very many servers at all that strip "\n" from single-line textboxes, as
every other browser does this already.

Sincerely,
-hope-
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
I can't confirm that this is a new bug. When i paste some text like yours in the
Google Search box, it also sends %0D%0A (for a linebreak) to the server. So
where is the new bug about this?
Re Comment 3: With FF 1.0 that is. With a current trunk build the same happens
to me.
I think that dup of bug 286804. not firefox bug.
This is exactly the same as bug 286804.  Please mark confirmed and concatenate
the disjointed threads.

Thanks.

*** This bug has been marked as a duplicate of 286804 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → DUPLICATE
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.