Node.js based forum software built for the modern web
fix: #13993, encodeURICompoent pid since it can be AP url
Barış Soner Uşaklıb607a80aeb9f
diff --git a/src/controllers/helpers.js b/src/controllers/helpers.jsindex 27366459a9..554967cab4 100644--- a/src/controllers/helpers.js+++ b/src/controllers/helpers.js@@ -396,7 +396,7 @@ helpers.setCategoryTeaser = function (category) {if (Array.isArray(category.posts) && category.posts.length && category.posts[0]) {const post = category.posts[0];category.teaser = {- url: `${nconf.get('relative_path')}/post/${post.pid}`,+ url: `${nconf.get('relative_path')}/post/${encodeURIComponent(post.pid)}`,timestampISO: post.timestampISO,pid: post.pid,tid: post.tid,