[pkg-lynx-maint] Bug#1116319: lynx: formats <form method=post enctype=text/plain> wrong
наб
nabijaczleweli at nabijaczleweli.xyz
Thu Sep 25 15:21:09 BST 2025
Package: lynx
Version: 2.9.0dev.12-1
Version: 2.9.2-1
Severity: normal
Tags: upstream
Dear Maintainer,
If you submit
<form method=post enctype=text/plain>
<input type=text name=vendor value=http hidden readonly>
<input type=text name=archive value=yes-i-really-want-one hidden readonly>
<input type=submit name=type value=tar>
<input type=submit name=type value=zip>
then lynx does
1477722 write(3, "POST /src HTTP/1.0\r\nHost: nabijaczleweli:8000\r\nAccept: text/html, text/plain, text/sgml, text/css, */*;q=0.01\r\nAccept-Encoding: gzip, bzip2\r\nAccept-Language: en\r\nPragma: no-cache\r\nCache-Control: no-cache\r\nUser-Agent: Lynx/2.9.2 libwww-FM/2.14 SSL-MM/1.4.1 GNUTLS/3.8.5\r\nReferer: http://nabijaczleweli:8000/src\r\nContent-Type: text/plain\r\nContent-Length: 56\r\n\r\nvendor=\nhttp\n\narchive=\nyes-i-really-want-one\n\ntype=\ntar\n", 415) = 415
which is wrong: the correct body is
vendor=http\r
archive=yes-i-really-want-one\r
type=tar\r
as per
https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#submit-body
https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#text/plain-encoding-algorithm
I repro this on upstream lynx 2.9.2.
Best,
-- System Information:
Debian Release: 12.11
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.1.0-35-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages lynx depends on:
ii libbsd0 0.11.7-2
ii libbz2-1.0 1.0.8-5+b1
ii libc6 2.36-9+deb12u10
ii libgnutls30 3.7.9-2+deb12u4
ii libidn2-0 2.3.3-1+b1
ii libncursesw6 6.4+20231121-1
ii libtinfo6 6.4+20231121-1
ii lynx-common 2.9.0dev.12-1
ii zlib1g 1:1.2.13.dfsg-1
Versions of packages lynx recommends:
ii mailcap 3.70+nmu1
lynx suggests no packages.
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-lynx-maint/attachments/20250925/4713387a/attachment.sig>
More information about the pkg-lynx-maint
mailing list