You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2004/09/30 16:59:26 UTC

DO NOT REPLY [Bug 31490] New: - mod_proxy_ftp renders filenames with spaces badly

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31490>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31490

mod_proxy_ftp renders filenames with spaces badly

           Summary: mod_proxy_ftp renders filenames with spaces badly
           Product: Apache httpd-2.0
           Version: 2.0.51
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_proxy
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: gab@ector.elte.hu


using a reverse proxy to an ftp server the rendering of received directory
listings are useless for files with spaces (' ') in their names. the entry
for a file named "long filename.txt" becomes
long &lt;a href="filename.txt"&gt;filename.txt&lt;/a&gt;
in the output.
i think it's because vars searchidx and firstfile in ap_proxy_send_dir_filter()
get initialized at every cycle of the loop which they shouldn't. i made them
both static and it fixes but haven't checked if doing so leads to some memory
leaking or else.

Gabor

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org