Skip to content

Commit da07e60

Browse files
Zipher04dregad
authored andcommitted
HgWeb: allow space and unicode chars in filename
Fixes #219 Backported from c88bc43.
1 parent b776e30 commit da07e60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SourceHgWeb/SourceHgWeb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ private function commit_changeset( $p_repo, $p_input, $p_branch='' ) {
275275

276276
$t_changeset->author_email = empty($t_commit['author_email'])? '': $t_commit['author_email'];
277277

278-
preg_match_all('#diff[\s]*-r[\s]([^\s]*)[\s]*-r[\s]([^\s]*)[\s]([^\n]*)\n(Binary file[\s]([^\s]*)[\s]has changed|\-{3}[\s](/dev/null)?[^\t]*[^\n]*\n\+{3}[\s](/dev/null)?[^\t]*\t[^\n]*)#', $p_input, $t_matches, PREG_SET_ORDER);
278+
preg_match_all('#diff[\s]*-r[\s]([^\s]*)[\s]*-r[\s]([^\s]*)[\s]([^\n]*)\n(Binary file[\s]([^\r\n\t\f\v]*)[\s]has changed|\-{3}[\s](/dev/null)?[^\t]*[^\n]*\n\+{3}[\s](/dev/null)?[^\t]*\t[^\n]*)#u', $p_input, $t_matches, PREG_SET_ORDER);
279279

280280
$t_commit['files'] = array();
281281

0 commit comments

Comments
 (0)