httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r805084 - /httpd/mod_ftp/trunk/modules/ftp/ftp_util.c
Date Mon, 17 Aug 2009 18:21:35 GMT
Author: wrowe
Date: Mon Aug 17 18:21:34 2009
New Revision: 805084

URL: http://svn.apache.org/viewvc?rev=805084&view=rev
Log:
Use ftp_escape_control_text for untrusted control channel text

Modified:
    httpd/mod_ftp/trunk/modules/ftp/ftp_util.c

Modified: httpd/mod_ftp/trunk/modules/ftp/ftp_util.c
URL: http://svn.apache.org/viewvc/httpd/mod_ftp/trunk/modules/ftp/ftp_util.c?rev=805084&r1=805083&r2=805084&view=diff
==============================================================================
--- httpd/mod_ftp/trunk/modules/ftp/ftp_util.c (original)
+++ httpd/mod_ftp/trunk/modules/ftp/ftp_util.c Mon Aug 17 18:21:34 2009
@@ -473,7 +473,8 @@
     res = ap_run_translate_name(r);
     if (res) {
         fc->response_notes = apr_psprintf(r->pool, FTP_MSG_PERM_DENIED,
-                                          r->parsed_uri.path);
+                                 ftp_escape_control_text(r->parsed_uri.path,
+                                                         r->pool));
         return FTP_REPLY_LOCAL_ERROR;
     }
     r->uri = ap_escape_uri(r->pool, r->uri);



Mime
View raw message