@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | // mode switch from plain text to HTML editor => convert HTML special chars |
37 | 37 | $text = nl2br(htmlspecialchars($text)); |
38 | 38 | // .. and smilies |
39 | - $text = ' ' . $text . ' '; // see Redmine #1103 |
|
39 | + $text = ' ' . $text . ' '; // see Redmine #1103 |
|
40 | 40 | $text = str_replace($smiley['text'], $smiley['spaced_image'], $text); |
41 | 41 | if (substr($text, 0, 1) == ' ') { |
42 | 42 | $text = substr($text, 1); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | // convert to HTML for storing to database |
60 | 60 | // also implemented in okapi/services/logs/submit.php |
61 | 61 | $text = nl2br(htmlspecialchars($text, ENT_COMPAT, 'UTF-8')); |
62 | - $text = str_replace(' ', ' ', $text); // can produce new ' ' (' ' + ' ') |
|
62 | + $text = str_replace(' ', ' ', $text); // can produce new ' ' (' ' + ' ') |
|
63 | 63 | $text = str_replace(' ', ' ', $text); |
64 | 64 | } else { |
65 | 65 | // mode switch from HTML editor to plain text, or decode HTML-encoded plain text |
@@ -510,7 +510,7 @@ |
||
510 | 510 | } |
511 | 511 | |
512 | 512 | if ($coords) { |
513 | - $lastcoorddate = $coords[count($coords)-1]['date']; |
|
513 | + $lastcoorddate = $coords[count($coords) - 1]['date']; |
|
514 | 514 | $coords[] = [ |
515 | 515 | 'date' => '0000-00-00', |
516 | 516 | 'latitude' => $coords[count($coords) - 1]['latitude'], |