Index: trunk/extensions/ExtensionDistributor/svn-invoker.php |
— | — | @@ -25,6 +25,7 @@ |
26 | 26 | passthru( $cmd, $retval ); |
27 | 27 | $output = ob_get_contents(); |
28 | 28 | ob_end_clean(); |
| 29 | + return $output; |
29 | 30 | } |
30 | 31 | |
31 | 32 | function svnError( $msg, $info = false ) { |
— | — | @@ -84,8 +85,12 @@ |
85 | 86 | return; |
86 | 87 | } |
87 | 88 | |
88 | | - $sx = new SimpleXMLElement( $result ); |
89 | | - $rev = $sx->entry->commit['revision']; |
| 89 | + try { |
| 90 | + $sx = new SimpleXMLElement( $result ); |
| 91 | + $rev = $sx->entry->commit['revision']; |
| 92 | + } catch ( Exception $e ) { |
| 93 | + $rev = false; |
| 94 | + } |
90 | 95 | if ( !$rev || strpos( $rev, '/' ) !== false || strpos( $rev, "\000" ) !== false ) { |
91 | 96 | svnError( 'extdist-svn-parse-error', $result ); |
92 | 97 | return; |