You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Martin Kraemer <Ma...@mch.sni.de> on 1997/09/11 10:58:41 UTC

[PATCH] mod_autoindex: understand entity names

The appended patch fixes two shortcomings in mod_autoindex's
AddDescription  logic:

1)  Entity Names (like &uuml;) are parsed and counted as having a width
    of "one character". Until now, their length was taken in column
    counting, resulting in too early truncated description columns.

2)  The last character of a description text which had the maximum
    allowed length (27?) was overwritten with the "truncated" character
    ('>'). This didn't make the string any shorter, but made it
    unreadable :-(   Now the string is truncated only if it really
    exceeds the maximum length.

Please vote....

    Martin
-- 
| S I E M E N S |  <Ma...@mch.sni.de>  |      Siemens Nixdorf
| ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
| N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request

Re: [PATCH] mod_autoindex: understand entity names

Posted by Martin Kraemer <Ma...@mch.sni.de>.
Once again, this time WITH the patch...

On Thu, Sep 11, 1997 at 11:58:41AM +0200, Martin Kraemer wrote:
The appended patch fixes two shortcomings in mod_autoindex's
AddDescription  logic:

1)  Entity Names (like &uuml;) are parsed and counted as having a width
    of "one character". Until now, their length was taken in column
    counting, resulting in too early truncated description columns.

2)  The last character of a description text which had the maximum
    allowed length (27?) was overwritten with the "truncated" character
    ('>'). This didn't make the string any shorter, but made it
    unreadable :-(   Now the string is truncated only if it really
    exceeds the maximum length.

Please vote....

    Martin
-- 
| S I E M E N S |  <Ma...@mch.sni.de>  |      Siemens Nixdorf
| ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
| N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request