Received: (qmail 18967 invoked by uid 2012); 24 Dec 1997 06:12:16 -0000 Message-Id: <19971224061216.18966.qmail@hyperreal.org> Date: 24 Dec 1997 06:12:16 -0000 From: Mark Mason Reply-To: mason@dewline.com To: apbugs@hyperreal.org Subject: or maybe in url causes line break in log file X-Send-Pr-Version: 3.2 >Number: 1598 >Category: mod_log-any >Synopsis: or maybe in url causes line break in log file >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: analyzed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Tue Dec 23 22:20:00 PST 1997 >Last-Modified: Mon Jun 15 07:13:29 PDT 1998 >Originator: mason@dewline.com >Organization: >Release: 1.2.4 >Environment: FreeBSD dewline.com 2.2.1-RELEASE FreeBSD 2.2.1-RELEASE #0: Wed Jun 11 22:26:38 EDT 1997 root@test.dewline.com:/usr/src/sys/compile/DEWLINE i386 >Description: Cut-and-paste from an unknown X terminal (maybe NCD?) cutting over a line wrap and pasting into Netscape 3.01 "Open Url" caused a line wrap in the middle of the URL. The URL was apparently loaded ok, but the line wrap (I don't know if it was a CR, LF, or both) caused a line wrap in the URL in the log file, breaking a single log entry into two lines. My log processor dumped core as a result, leading to feelings of inadequacy, probably justified. >How-To-Repeat: My X terminal doesn't cut the line wrap, so I haven't been able to duplicate it, but it's happened from at least two different hosts. >Fix: I learned to check my pointers before I run off the end of my address space, which will at least alleviate some of the symptoms. %0 >Audit-Trail: State-Changed-From-To: open-analyzed State-Changed-By: coar State-Changed-When: Mon Jun 15 07:13:28 PDT 1998 State-Changed-Why: Since neither unencoded CRs nor LFs are legal in URLs, I'm tempted to say this is a browser problem. However, since we should be liberal in what we accept, I'll see about protecting against this. I really don't see how it can be done with incurring a major performance penalty, though, so the decision may end up being to leave the blame on the browser and say 'don't do that.' >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]