Index: trunk/phase3/tests/phpunit/includes/parser/NewParserTest.php |
— | — | @@ -445,6 +445,7 @@ |
446 | 446 | "$base/local-thumb/3/3a/Foobar.jpg/640px-Foobar.jpg", |
447 | 447 | "$base/local-thumb/3/3a/Foobar.jpg/120px-Foobar.jpg", |
448 | 448 | |
| 449 | + "$base/local-public/0/09/Bad.jpg", |
449 | 450 | "$base/local-thumb/0/09/Bad.jpg", |
450 | 451 | |
451 | 452 | "$base/local-public/math/f/a/5/fa50b8b616463173474302ca3e63586b.png", |
— | — | @@ -464,7 +465,9 @@ |
465 | 466 | foreach ( $files as $file ) { |
466 | 467 | $tmp = $file; |
467 | 468 | while ( $tmp = FileBackend::parentStoragePath( $tmp ) ) { |
468 | | - $backend->clean( array( 'dir' => $tmp ) ); |
| 469 | + if ( !$backend->clean( array( 'dir' => $tmp ) )->isOK() ) { |
| 470 | + break; |
| 471 | + } |
469 | 472 | } |
470 | 473 | } |
471 | 474 | } |