Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 500a0fc

Browse files
committedNov 15, 2012
Fix replacing of invalid XML characters
Fixes #14157: Array to string conversion error on soap request with PHP 5.4
1 parent 88a332a commit 500a0fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎api/soap/mc_api.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ function mci_null_if_empty( $p_value ) {
305305
*/
306306
function mci_sanitize_xml_string ( $p_input ) {
307307

308-
return preg_replace( '/[^\x9\xA\xD\x20-\xD7FF\xE000-\xFFFD\x{10000}-\x{10FFFF}]/u', '', $p_input);
308+
return preg_replace( '/[^\x9\xA\xD\x20-\x{D7FF}\x{E000}-\x{FFFD}\x{10000}-\x{10FFFF}]+/u', '', $p_input);
309309
}
310310

311311
/**

0 commit comments

Comments
 (0)
Please sign in to comment.