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) - Trim the image url before short image url detection (#108)
- Fxed huge issue with `contentonly` display mode. - 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. - 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 ## v0.12.1

View File

@ -5067,7 +5067,7 @@ register_module([
$content .= "<ul class='page-tags-display'>\n"; $content .= "<ul class='page-tags-display'>\n";
foreach($pageindex->$page->tags as $tag) 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"; $content .= "\n</ul>\n";
} }

View File

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

View File

@ -110,7 +110,7 @@ register_module([
$content .= "<ul class='page-tags-display'>\n"; $content .= "<ul class='page-tags-display'>\n";
foreach($pageindex->$page->tags as $tag) 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"; $content .= "\n</ul>\n";
} }