CVS update: php3/functions

From: Date: Fri, 15 Jan 1999 11:14:43 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-3565@lists.php.net to get a copy of this message
Date: Friday January 15, 1999 @ 6:14 Author: ssb Update of /repository/php3/functions In directory asf:/u/temp/cvs-serv13448 Modified Files: xml.c Log Message: bugfix: attribute values were not converted to the target encoding before being passed to script code Index: php3/functions/xml.c diff -c php3/functions/xml.c:1.20 php3/functions/xml.c:1.21 *** php3/functions/xml.c:1.20 Wed Jan 13 23:48:27 1999 --- php3/functions/xml.c Fri Jan 15 06:14:41 1999 *************** *** 27,33 **** +----------------------------------------------------------------------+ */ ! /* $Id: xml.c,v 1.20 1999/01/14 04:48:27 andrey Exp $ */ #define IS_EXT_MODULE #if COMPILE_DL # if PHP_31 --- 27,33 ---- +----------------------------------------------------------------------+ */ ! /* $Id: xml.c,v 1.21 1999/01/15 11:14:41 ssb Exp $ */ #define IS_EXT_MODULE #if COMPILE_DL # if PHP_31 *************** *** 610,619 **** while (attributes && *attributes) { char *key = (char *)attributes[0]; char *value = (char *)attributes[1]; if (parser->case_folding) { key = _php3_strtoupper(estrdup(key)); } ! add_assoc_string(args[2], key, value, 1); if (parser->case_folding) { efree(key); } --- 610,624 ---- while (attributes && *attributes) { char *key = (char *)attributes[0]; char *value = (char *)attributes[1]; + char *decoded_value; + int decoded_len; if (parser->case_folding) { key = _php3_strtoupper(estrdup(key)); } ! decoded_value = xml_utf8_decode(value, strlen(value), ! &decoded_len, ! parser->target_encoding); ! add_assoc_string(args[2], key, decoded_value, 0); if (parser->case_folding) { efree(key); } -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#3565) next »