hnangelo Fri Aug 29 22:59:42 2008 UTC
Modified files:
/php-src/ext/tidy tidy.c
Log:
Fix wrong Unicode string length (bytes) in tidy_parse_string()
http://cvs.php.net/viewvc.cgi/php-src/ext/tidy/tidy.c?r1=1.122&r2=1.123&diff_format=u
Index: php-src/ext/tidy/tidy.c
diff -u php-src/ext/tidy/tidy.c:1.122 php-src/ext/tidy/tidy.c:1.123
--- php-src/ext/tidy/tidy.c:1.122 Thu Jul 3 12:21:25 2008
+++ php-src/ext/tidy/tidy.c Fri Aug 29 22:59:41 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: tidy.c,v 1.122 2008/07/03 12:21:25 felipe Exp $ */
+/* $Id: tidy.c,v 1.123 2008/08/29 22:59:41 hnangelo Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1180,7 +1180,7 @@
php_info_print_table_start();
php_info_print_table_header(2, "Tidy support", "enabled");
php_info_print_table_row(2, "libTidy Release", (char
*)tidyReleaseDate());
- php_info_print_table_row(2, "Extension Version",
PHP_TIDY_MODULE_VERSION " ($Id: tidy.c,v 1.122 2008/07/03 12:21:25 felipe Exp
$)");
+ php_info_print_table_row(2, "Extension Version",
PHP_TIDY_MODULE_VERSION " ($Id: tidy.c,v 1.123 2008/08/29 22:59:41 hnangelo Exp
$)");
php_info_print_table_end();
DISPLAY_INI_ENTRIES();
@@ -1313,7 +1313,7 @@
TIDY_APPLY_CONFIG_ZVAL(obj->ptdoc->doc, options);
- if (php_tidy_parse_string(obj, input.s, input_len, enc TSRMLS_CC) ==
FAILURE) {
+ if (php_tidy_parse_string(obj, input.s, USTR_BYTES(input_type,
input_len), enc TSRMLS_CC) == FAILURE) {
zval_dtor(return_value);
INIT_ZVAL(*return_value);
RETVAL_FALSE;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php