diff --git a/SourceGitweb/SourceGitweb.php b/SourceGitweb/SourceGitweb.php index 6c20d08..365bc05 100644 --- a/SourceGitweb/SourceGitweb.php +++ b/SourceGitweb/SourceGitweb.php @@ -154,7 +154,7 @@ $t_heads_url = $this->uri_base( $p_repo ) . 'a=heads'; $t_branches_input = url_get( $t_heads_url ); - $t_branches_input = str_replace( array(PHP_EOL, '<', '>', ' '), array('', '<', '>', ' '), $t_branches_input ); + $t_branches_input = str_replace( array("\r", "\n", '<', '>', ' '), array('', '', '<', '>', ' '), $t_branches_input ); $t_branches_input_p1 = strpos( $t_branches_input, '' ); $t_branches_input_p2 = strpos( $t_branches_input, '