[Webkit-unassigned] [Bug 169599] New: LF converted to CRLF when a form is submitted
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 14 06:37:19 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=169599
Bug ID: 169599
Summary: LF converted to CRLF when a form is submitted
Classification: Unclassified
Product: WebKit
Version: WebKit Local Build
Hardware: PC
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: Forms
Assignee: webkit-unassigned at lists.webkit.org
Reporter: crocodile2u at gmail.com
CC: cdumez at apple.com, wenson_hsieh at apple.com
When a form is submitted, text from a textarea element that contains "LF" (\n) as line terminators, is transformed: LF is replaced with CRLF (\r\n). It can be extremely annoying when maxlength is specified for a textarea. Imagine that maxlength is set to 100. Text contains exactly 100 symbols and has 2 lines (\n as terminator). Browser checks for maxlength, finds that it is OK, submits the form. But the actual _submitted_ value contains \r\n as terminator, so it is 101 chars. Server-side validation rejects it. We observed the same behavior on Windows as well as on Linux.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170314/01971886/attachment.html>
More information about the webkit-unassigned
mailing list