Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102941561
D46318.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
433 B
Referenced Files
None
Subscribers
None
D46318.diff
View Options
diff --git a/lib/libfetch/fetch.c b/lib/libfetch/fetch.c
--- a/lib/libfetch/fetch.c
+++ b/lib/libfetch/fetch.c
@@ -447,7 +447,10 @@
goto ouch;
}
u->doc = doc;
- while (*p != '\0') {
+ /* fragments are reserved for client-side processing, see
+ * https://www.rfc-editor.org/rfc/rfc9110.html#section-7.1
+ */
+ while (*p != '\0' && *p != '#') {
if (!isspace((unsigned char)*p)) {
*doc++ = *p++;
} else {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 12:54 AM (21 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14726518
Default Alt Text
D46318.diff (433 B)
Attached To
Mode
D46318: libfetch: don't include fragments in HTTP requests
Attached
Detach File
Event Timeline
Log In to Comment