httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Sutton <p...@ukweb.com>
Subject Re: [PATCH] to enhance bugdb.cgi
Date Thu, 24 Apr 1997 19:19:16 GMT
On Thu, 24 Apr 1997, Rodent of Unusual Size wrote:
>      o Adds searchability by class (change-request, sw-bug, ...)
>      o Likewise for severity (critical, non-critical, ...)
>      o Allows changing both of these when editing

Useful.

>      o Unbuffers STDOUT

I don't know whether this is necessary. Most browsers have to wait to
receive the whole table anyway before starting to display anything. Maybe
it'll make lynx appear faster. 

>      o Fixes an escaping bug (unescaped '@' in a string)
>      o Requests "uname -a" in the environment section of new PRs

>From the patch:
>   	if ($fieldnames_multi{$key} > 0 && $value !~ /\n$/) {
>   	    $value .= "\n";
> + 	    $value =~ tr/\r/\n/;
>   	}

This'll only be done if the browser missing the trailing \n. I guess you
need 

  $value =~ tr/\r/\n/ if ($fieldnames_multi{$key});

outside the if { ... }. But then it'll translate the normal \r\n into
\n\n. Um. What type of line endings should be on the files? I normally use
\n, with

  s/\r\n/\n/g;    # translate DOS/Windows -> Unix line endings
  s/\r/\n/g;      # translate Mac (and now MSIE 4) -> Unix line endings

//pcs



Mime
View raw message