diff options
author | friendica <info@friendica.com> | 2012-03-17 18:15:36 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-03-17 18:15:36 -0700 |
commit | 67fd539f53756723d844dd204639146587f5bb76 (patch) | |
tree | 23a8a0823445735752668c0d93ef1d5dee363a95 /include | |
parent | 94fac6d76725042fc176aaebd2af721ab1540ff7 (diff) | |
download | volse-hubzilla-67fd539f53756723d844dd204639146587f5bb76.tar.gz volse-hubzilla-67fd539f53756723d844dd204639146587f5bb76.tar.bz2 volse-hubzilla-67fd539f53756723d844dd204639146587f5bb76.zip |
bug #337, call template_unescape() only at the end of template processing
Diffstat (limited to 'include')
-rwxr-xr-x | include/network.php | 4 | ||||
-rwxr-xr-x | include/template_processor.php | 2 | ||||
-rw-r--r-- | include/text.php | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/network.php b/include/network.php index c72919dd8..22157ff18 100755 --- a/include/network.php +++ b/include/network.php @@ -303,7 +303,7 @@ function webfinger_dfrn($s,&$hcard) { if(! function_exists('webfinger')) { -function webfinger($s) { +function webfinger($s, $debug = false) { $host = ''; if(strstr($s,'@')) { $host = substr($s,strpos($s,'@') + 1); @@ -328,7 +328,7 @@ function webfinger($s) { }} if(! function_exists('lrdd')) { -function lrdd($uri) { +function lrdd($uri, $debug = false) { $a = get_app(); diff --git a/include/template_processor.php b/include/template_processor.php index 93bf391c5..4c317efe1 100755 --- a/include/template_processor.php +++ b/include/template_processor.php @@ -203,7 +203,7 @@ $os=$s; $count++; $s = $this->var_replace($s); } - return template_unescape($s); + return $s; } } diff --git a/include/text.php b/include/text.php index cdf82ca87..89acbf9fa 100644 --- a/include/text.php +++ b/include/text.php @@ -20,7 +20,7 @@ function replace_macros($s,$r) { //$a = get_app(); //$a->page['debug'] .= "$tt <br>\n"; - return $r; + return template_unescape($r); }} |