cvs: php-src(PHP_5_3) /ext/imap php_imap.c
| From: | Felipe Pena | Date: | Thu, 10 Jul 2008 17:50:51 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/imap php_imap.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-50984@lists.php.net to get a copy of this message | ||
felipe Thu Jul 10 17:50:51 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/imap php_imap.c
Log:
- MFB: Fixed bug #45460 (imap patch for fromlength fix in imap_headerinfo doesn't accept
lengths of 1024)
http://cvs.php.net/viewvc.cgi/php-src/ext/imap/php_imap.c?r1=1.208.2.7.2.26.2.14&r2=1.208.2.7.2.26.2.15&diff_format=u
Index: php-src/ext/imap/php_imap.c
diff -u php-src/ext/imap/php_imap.c:1.208.2.7.2.26.2.14
php-src/ext/imap/php_imap.c:1.208.2.7.2.26.2.15
--- php-src/ext/imap/php_imap.c:1.208.2.7.2.26.2.14 Mon Jul 7 17:18:43 2008
+++ php-src/ext/imap/php_imap.c Thu Jul 10 17:50:51 2008
@@ -26,7 +26,7 @@
| PHP 4.0 updates: Zeev Suraski <zeev@zend.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: php_imap.c,v 1.208.2.7.2.26.2.14 2008/07/07 17:18:43 felipe Exp $ */
+/* $Id: php_imap.c,v 1.208.2.7.2.26.2.15 2008/07/10 17:50:51 felipe Exp $ */
#define IMAP41
@@ -1977,16 +1977,16 @@
ZEND_FETCH_RESOURCE(imap_le_struct, pils *, &streamind, -1, "imap", le_imap);
if (argc >= 3) {
- if (fromlength < 0 || fromlength >= MAILTMPLEN) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "From length has to be between 1 and %i",
MAILTMPLEN);
+ if (fromlength < 0 || fromlength > MAILTMPLEN) {
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "From length has to be between 0 and %d",
MAILTMPLEN);
RETURN_FALSE;
}
} else {
fromlength = 0x00;
}
if (argc >= 4) {
- if (subjectlength < 0 || subjectlength >= MAILTMPLEN) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "Subject length has to be between 1 and
%i", MAILTMPLEN);
+ if (subjectlength < 0 || subjectlength > MAILTMPLEN) {
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Subject length has to be between 0 and
%d", MAILTMPLEN);
RETURN_FALSE;
}
} else {