1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 04:23:01 +00:00

Bugfix: Tag link escaping at the bottom of every page

This commit is contained in:
Starbeamrainbowlabs 2016-11-06 20:51:32 +00:00
parent 0c625cd3da
commit f07cd96691
4 changed files with 4 additions and 3 deletions

View file

@ -20,6 +20,7 @@
- Trim the image url before short image url detection (#108)
- Fxed huge issue with `contentonly` display mode.
- Improved the search engine indexing algorithm. It now shouldn't choke on certain special characters (`[]{}|`) and will treat them as word boundaries.
- Fixed tag links at the bottom of pages for tags with a single quote (`'`) in them.
## v0.12.1

View file

@ -5067,7 +5067,7 @@ register_module([
$content .= "<ul class='page-tags-display'>\n";
foreach($pageindex->$page->tags as $tag)
{
$content .= "<li><a href='?action=list-tags&tag=$tag'>$tag</a></li>\n";
$content .= "<li><a href='?action=list-tags&tag=" . rawurlencode($tag) . "'>$tag</a></li>\n";
}
$content .= "\n</ul>\n";
}

View file

@ -194,7 +194,7 @@
"author": "Starbeamrainbowlabs",
"description": "Allows you to view pages. You really should include this one.",
"id": "page-view",
"lastupdate": 1476906745,
"lastupdate": 1478463906,
"optional": false
},
{

View file

@ -110,7 +110,7 @@ register_module([
$content .= "<ul class='page-tags-display'>\n";
foreach($pageindex->$page->tags as $tag)
{
$content .= "<li><a href='?action=list-tags&tag=$tag'>$tag</a></li>\n";
$content .= "<li><a href='?action=list-tags&tag=" . rawurlencode($tag) . "'>$tag</a></li>\n";
}
$content .= "\n</ul>\n";
}