Skip to content

Commit fdc052b

Browse files
committed
fix strpos way of searching for linebreaks in string
1 parent 04a3e11 commit fdc052b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/SapRfcFunction.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ protected function trimStrings($return)
9797
/**
9898
* Do not trim strings containing line breaks.
9999
*/
100-
if (strtr($return, "\n") || strtr($return, "\r\n")) {
100+
if (strpos($return, "\n") !== false
101+
|| strpos($return, "\r\n") !== false
102+
) {
101103
return $return;
102104
}
103105
return rtrim($return);

0 commit comments

Comments
 (0)