Index: trunk/phase3/includes/filerepo/backend/FSFileBackend.php |
— | — | @@ -78,6 +78,7 @@ |
79 | 79 | * Sanity check a relative file system path for validity |
80 | 80 | * |
81 | 81 | * @param $path string Normalized relative path |
| 82 | + * @return bool |
82 | 83 | */ |
83 | 84 | protected function isLegalRelPath( $path ) { |
84 | 85 | // Check for file names longer than 255 chars |
— | — | @@ -85,7 +86,7 @@ |
86 | 87 | return false; |
87 | 88 | } |
88 | 89 | if ( wfIsWindows() ) { // NTFS |
89 | | - return !preg_match( '![:*?"<>]!', $path ); |
| 90 | + return !preg_match( '![:*?"<>|]!', $path ); |
90 | 91 | } else { |
91 | 92 | return true; |
92 | 93 | } |