Skip to content

Commit

Permalink
Merge pull request #220 from Loki3000/master
Browse files Browse the repository at this point in the history
#187 Fix multibyte filename generation
  • Loading branch information
Henni authored Aug 1, 2016
2 parents 8e44e01 + 35a6118 commit 24814ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/notesservice.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function update ($id, $content, $userId){
// in case of markdown
$title = ltrim($title, ' #');
// using a maximum of 100 chars should be enough
$title = substr($title, 0, 100);
$title = mb_substr($title, 0, 100, "UTF-8");

// generate filename if there were collisions
$currentFilePath = $file->getPath();
Expand Down

0 comments on commit 24814ab

Please sign in to comment.