Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
:
rebuilds
>
php4
> php-4.3.9-ftpcrlf.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php-4.3.9-ftpcrlf.patch of Package php4
--- php-4.3.9/ext/ftp/ftp.c.ftpcrlf +++ php-4.3.9/ext/ftp/ftp.c @@ -969,11 +969,17 @@ int size; char *data; + if (strpbrk(cmd, "\r\n")) { + return 0; + } /* build the output buffer */ if (args && args[0]) { /* "cmd args\r\n\0" */ if (strlen(cmd) + strlen(args) + 4 > FTP_BUFSIZE) return 0; + if (strpbrk(args, "\r\n")) { + return 0; + } size = sprintf(ftp->outbuf, "%s %s\r\n", cmd, args); } else {