Permalink
Browse files

Merge pull request #803 from makss/patch-5

txp_tag: normalises $_POST value
  • Loading branch information...
bloatware committed Oct 17, 2016
2 parents 4f12604 + cb0acc2 commit c18fb14cccb06820afbf78eea08dfd90276fd5a6
Showing with 6 additions and 6 deletions.
  1. +6 −6 textpattern/include/txp_tag.php
@@ -2176,7 +2176,7 @@ function tag_link_to_home()
extract($atts);
- $linktext = isset($_POST['linktext']) ? $_POST['linktext'] : gTxt('tag_home');
+ $linktext = isset($_POST['linktext']) ? ps('linktext') : gTxt('tag_home');
$out = $this->tagbuildForm(
$this->startblock.
@@ -2208,7 +2208,7 @@ function tag_link_to_next()
extract($atts);
- $linktext = isset($_POST['linktext']) ? $_POST['linktext'] : '<txp:next_title />';
+ $linktext = isset($_POST['linktext']) ? ps('linktext') : '<txp:next_title />';
$out = $this->tagbuildForm(
$this->startblock.
@@ -2240,7 +2240,7 @@ function tag_link_to_prev()
extract($atts);
- $linktext = isset($_POST['linktext']) ? $_POST['linktext'] : '<txp:prev_title />';
+ $linktext = isset($_POST['linktext']) ? ps('linktext') : '<txp:prev_title />';
$out = $this->tagbuildForm(
$this->startblock.
@@ -2339,7 +2339,7 @@ function tag_linklist()
function tag_newer()
{
- $linktext = isset($_POST['linktext']) ? $_POST['linktext'] : '<txp:text item="newer" />';
+ $linktext = isset($_POST['linktext']) ? ps('linktext') : '<txp:text item="newer" />';
$out = $this->tagbuildForm(
$this->startblock.
@@ -2372,7 +2372,7 @@ function tag_next_title()
function tag_older()
{
- $linktext = isset($_POST['linktext']) ? $_POST['linktext'] : '<txp:text item="older" />';
+ $linktext = isset($_POST['linktext']) ? ps('linktext') : '<txp:text item="older" />';
$out = $this->tagbuildForm(
$this->startblock.
@@ -2476,7 +2476,7 @@ function tag_permlink()
extract($atts);
- $linktext = isset($_POST['linktext']) ? $_POST['linktext'] : '<txp:title />';
+ $linktext = isset($_POST['linktext']) ? ps('linktext') : '<txp:title />';
$out = $this->tagbuildForm(
$this->startblock.

0 comments on commit c18fb14

Please sign in to comment.