Skip to content

Commit fb270d7

Browse files
committed
Clean the whole id, not just the title
This avoids cases where e.g. the title is empty but the date prefix ends with "-".
1 parent 3239372 commit fb270d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function _newEntryID($ns, $title) {
195195
);
196196
}
197197
$pre = strftime($dateprefix);
198-
return ($ns ? $ns.':' : '').$pre.cleanID($title);
198+
return cleanID(($ns ? $ns.':' : '').$pre.$title);
199199
}
200200

201201
/**

0 commit comments

Comments
 (0)