On Mon, Jun 21, 2004, Thomas Lotterer wrote:

> [...]
>     beautify printenv output
> [...]
>   +    #   beautify printenv output
>   +    %{l_shtool} subst \
>   +        -e 's;"\\n";"<br>\\n";g' \
>   +        apache_%{V_apache}/cgi-bin/printenv
>   +
> [...]

Err... no! printenv reads:

| #!/usr/opkg/bin/perl
| ##
| ##  printenv -- demo CGI program which just prints its environment
| ##
|
| print "Content-type: text/plain\n\n";
| foreach $var (sort(keys(%ENV))) {
|     $val = $ENV{$var};
|     $val =~ s|\n|\\n|g;
|     $val =~ s|"|\\"|g;
|     print "${var}=\"${val}\"\n";
| }

It outputs text/plain and not text/html. If it renders incorrectly in a
browser, the browser is broken. But we certainly don't want to include a
HTML tag <br> in a plain text output...

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to