MudGuard: zeilenweises Auslesen von Formulareingaben in Textarea

Beitrag lesen

Hi,

Die Browser liefern meines Wissens je nach Betriebssystem verschiedene Zeilenumrüche:

Für Javascript (also beim Auslesen von value der Textarea) mag das zutreffen.

Spätestens beim Abschicken eines Formulars an den Server müßte das aber CR LF (%0D%0A) sein:

siehe http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4:

application/x-www-form-urlencoded
[...]
   1. [...] Line breaks are represented as "CR LF" pairs (i.e., `%0D%0A').
[...]

multipart/form-data

[...]
The content "multipart/form-data" follows the rules of all multipart MIME data streams as outlined in [RFC2045]. The definition of "multipart/form-data" is available at the [IANA] registry.
[...]
As with all MIME transmissions, "CR LF" (i.e., `%0D%0A') is used to separate lines of data.

cu,
Andreas

--
Der Optimist: Das Glas  ist halbvoll.  - Der Pessimist: Das Glas ist halbleer. - Der Ingenieur: Das Glas ist doppelt so groß wie nötig.
http://mud-guard.de/? http://www.andreas-waechter.de/ http://www.helpers.de/