Skip to content

Commit

Permalink
Fix replacing of invalid XML characters
Browse files Browse the repository at this point in the history
Fixes #14157: Array to string conversion error on soap request with PHP
5.4
  • Loading branch information
rombert committed Nov 15, 2012
1 parent 88a332a commit 500a0fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/soap/mc_api.php
Expand Up @@ -305,7 +305,7 @@ function mci_null_if_empty( $p_value ) {
*/
function mci_sanitize_xml_string ( $p_input ) {

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

/**
Expand Down

0 comments on commit 500a0fc

Please sign in to comment.