Ftp listing codings

From: Evgeny Kotsuba <evgen__k@dont-contact.us>
Date: Thu, 26 Aug 2004 13:26:06 +0400

Hi,

Some my users are angry for things like &#203; etc. like in
-----------
<a HREF="%cb%e8%f1%f2%20%d2%f0%e5%f2%f3.doc"><img border="0"
SRC="/squid-internal-static/icons/anthony-layout.gif"
ALT="[FILE]"></a> <a
HREF="%cb%e8%f1%f2%20%d2%f0%e5%f2%f3.doc">&#203;&#232;&#241;&#242;
&#210;&#240;&#229;&#242;&#243;.doc</a>
----------
There is problem with ftp listing codings for file names in different
 codepage codings.
That is via using html_quote() for such strings. It seems that
problem may be solved via key in config file and not using total
 8-bit encoding

i.e.
//html_quote.c ->
//html_quote(const char *string)
.......
if(keyUse8bitcoding)
{
        if (!escape && (ch <= 0x1F) && ch != '\n' && ch != '\r' && ch
!= '\t') {
  ......
} else {
        if (!escape && (ch <= 0x1F || ch >= 0x7f) && ch != '\n' && ch
!= '\r' && ch != '\t') {
.....
}

Is there any drawbacks for such change ?

SY,
Evgeny Kotsuba
Received on Thu Aug 26 2004 - 03:26:20 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Sep 01 2004 - 12:00:04 MDT