Skip to content
Permalink
Browse files

Special Characters in GPX-/TXT-Files ; update #121 ; update #222

  • Loading branch information...
christian-m authored and following5 committed Jun 21, 2013
1 parent 99e638e commit c1a9efd6a05e779962f296943c296591326ac00f
Showing with 4 additions and 4 deletions.
  1. +3 −3 htdocs/lib/search.gpx.inc.php
  2. +1 −1 htdocs/lib/search.txt.inc.php
@@ -352,7 +352,7 @@
$thisline = mb_ereg_replace('{hints}', '', $thisline);
else
// Ocprop: <groundspeak:encoded_hints>(.*?)<\/groundspeak:encoded_hints>
$thisline = mb_ereg_replace('{hints}', ' <groundspeak:encoded_hints>' . decodeEntities(strip_tags($r['hint'])) . '</groundspeak:encoded_hints>
$thisline = mb_ereg_replace('{hints}', ' <groundspeak:encoded_hints>' . xmlentities(decodeEntities(strip_tags($r['hint']))) . '</groundspeak:encoded_hints>
', $thisline);
$thisline = mb_ereg_replace('{shortdesc}', xmlentities($r['short_desc']), $thisline);
@@ -578,9 +578,9 @@ function decodeEntities($str)
return $str;
}
function changePlaceholder($str, $inverse = true)
function changePlaceholder($str, $inverse = false)
{
$placeholter[0] = '{oc-placeholder-lt}'; $entity[0] = '&lt;';
$placeholder[0] = '{oc-placeholder-lt}'; $entity[0] = '&lt;';
$placeholder[1] = '{oc-placeholder-gt}'; $entity[1] = '&gt;';
for ($i=0;$i<=1;$i++)
{
@@ -272,7 +272,7 @@
$thislog = mb_ereg_replace('{type}', $logtype, $thislog);
if ($rLog['text_html'] == 0)
$thislog = mb_ereg_replace('{text}', strip_tags($rLog['text']), $thislog);
$thislog = mb_ereg_replace('{text}', decodeEntities(strip_tags($rLog['text'])), $thislog);
else
$thislog = mb_ereg_replace('{text}', html2txt($rLog['text']), $thislog);

0 comments on commit c1a9efd

Please sign in to comment.
You can’t perform that action at this time.