diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-09-17 11:12:21 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-09-17 11:12:21 +0200 |
commit | fa4bf4388b00b6093df6c770b3db865cc1fa4f40 (patch) | |
tree | 40c9e1df39fe517f21e7c581319336fa67009433 /program/include/rcube_utils.php | |
parent | f7c11e862f002d0cd03f2eb4bae10ce3de69dfd2 (diff) |
Fix PHP warning when rep_specialchars_output() 1st argument is not a string (#1488643)
Diffstat (limited to 'program/include/rcube_utils.php')
-rw-r--r-- | program/include/rcube_utils.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/program/include/rcube_utils.php b/program/include/rcube_utils.php index 23bf556e4..b278431a6 100644 --- a/program/include/rcube_utils.php +++ b/program/include/rcube_utils.php @@ -221,6 +221,10 @@ class rcube_utils static $js_rep_table = false; static $xml_rep_table = false; + if (!is_string($str)) { + $str = strval($str); + } + // encode for HTML output if ($enctype == 'html') { if (!$html_encode_arr) { |