diff options
author | 蒼時弦也 | 2017-01-10 09:35:21 +0800 |
---|---|---|
committer | 蒼時弦也 | 2017-01-10 09:35:21 +0800 |
commit | c21fb8e2a0030095fd8dbfd13f6ba84e933b0e2e (patch) | |
tree | 3a109c9c7d9857e2eef4489142a1e1fdaa308272 /lib | |
parent | f8e5b547670e3eeb75af3249bb9ad1ee2f44e58f (diff) |
Recovery tariling spaces
Diffstat (limited to '')
-rwxr-xr-x | lib/response.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/response.js b/lib/response.js index 910db863..a0dc8b1f 100755 --- a/lib/response.js +++ b/lib/response.js @@ -161,7 +161,7 @@ function showNote(req, res, next) { findNote(req, res, function (note) { // force to use note id var noteId = req.params.noteId; - var id = LZString.compressToBase64(note.id); + var id = LZString.compressToBase64(note.id); if ((note.alias && noteId != note.alias) || (!note.alias && noteId != id)) return res.redirect(config.serverurl + "/" + (note.alias || id)); return responseHackMD(res, note); @@ -413,7 +413,7 @@ function publishSlideActions(req, res, next) { res.redirect(config.serverurl + '/' + (note.alias ? note.alias : LZString.compressToBase64(note.id))); break; default: - res.redirect(config.serverurl + '/p/' + note.shortid); + res.redirect(config.serverurl + '/p/' + note.shortid); break; } }); |