| @@ 1234-1236 (lines=3) @@ | ||
| 1231 | } |
|
| 1232 | if ( substr( $result, -2 ) === "\r\n" ) { |
|
| 1233 | $result = substr( $result, 0, -2 ); |
|
| 1234 | } elseif ( substr( $result, -1 ) === "\n" ) { |
|
| 1235 | $result = substr( $result, 0, -1 ); |
|
| 1236 | } else { |
|
| 1237 | $this->_handle_error( $sock, 'line ending missing in response from $1' ); |
|
| 1238 | return false; |
|
| 1239 | } |
|
| @@ 1183-1185 (lines=3) @@ | ||
| 1180 | } |
|
| 1181 | ||
| 1182 | # Remove trailing line-ending (b/c) |
|
| 1183 | if ( substr( $out, -1 ) === "\n" ) { |
|
| 1184 | $out = substr( $out, 0, -1 ); |
|
| 1185 | } |
|
| 1186 | ||
| 1187 | # special case: don't return empty table |
|
| 1188 | if ( $out === "<table>\n<tr><td></td></tr>\n</table>" ) { |
|