Skip to content

Commit 7ae2d9a

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 fbbf1d2 commit 7ae2d9a

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
/**

3 commit comments

Comments
 (3)

pkmishra-HEC commented on Mar 29, 2018

@pkmishra-HEC

Hi,
I am still getting "Array to string conversion error on soap request with PHP" even though I updated as mentioned above in mc_api.php.
Using below versions:-
mantisbt-1.2.14
SquashTM-1.17.0
PHP-5.6.31

Below is the screen shot for reference

array to string conversion error

Please provide any other solution to resolve this issue

dregad commented on Mar 29, 2018

@dregad
Member

This is not a support platform. Please file an issue in our bugtracker https://mantisbt.org/bugs/

pkmishra-HEC commented on Mar 29, 2018

@pkmishra-HEC

I raised this issue in the bugtracker https://mantisbt.org/bugs/.
reference bug id# 0024187
Please provide a solution for this. Thanks in advance.

Please sign in to comment.