| @@ 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 | } |
|
| @@ 1213-1215 (lines=3) @@ | ||
| 1210 | } |
|
| 1211 | ||
| 1212 | # Remove trailing line-ending (b/c) |
|
| 1213 | if ( substr( $out, -1 ) === "\n" ) { |
|
| 1214 | $out = substr( $out, 0, -1 ); |
|
| 1215 | } |
|
| 1216 | ||
| 1217 | # special case: don't return empty table |
|
| 1218 | if ( $out === "<table>\n<tr><td></td></tr>\n</table>" ) { |
|