| @@ 1276-1278 (lines=3) @@ | ||
| 1273 | } |
|
| 1274 | if ( substr( $result, -2 ) === "\r\n" ) { |
|
| 1275 | $result = substr( $result, 0, -2 ); |
|
| 1276 | } elseif ( substr( $result, -1 ) === "\n" ) { |
|
| 1277 | $result = substr( $result, 0, -1 ); |
|
| 1278 | } else { |
|
| 1279 | $this->_handle_error( $sock, 'line ending missing in response from $1' ); |
|
| 1280 | return false; |
|
| 1281 | } |
|
| @@ 1219-1221 (lines=3) @@ | ||
| 1216 | } |
|
| 1217 | ||
| 1218 | # Remove trailing line-ending (b/c) |
|
| 1219 | if ( substr( $out, -1 ) === "\n" ) { |
|
| 1220 | $out = substr( $out, 0, -1 ); |
|
| 1221 | } |
|
| 1222 | ||
| 1223 | # special case: don't return empty table |
|
| 1224 | if ( $out === "<table>\n<tr><td></td></tr>\n</table>" ) { |
|