summaryrefslogtreecommitdiff
path: root/app/Http/RequestHandlers/PendingChangesLogData.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-12-07 11:21:20 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-12-07 11:21:20 +0000
commit1d4c828636e6545c187fec78edcf7745c9926d1a (patch)
tree0d09c6be62388eecb549762bc838c4d3f6bea535 /app/Http/RequestHandlers/PendingChangesLogData.php
parent5197b5a12c19197e8a0e5f8a9c333129a968a4ca (diff)
downloadwebtrees-1d4c828636e6545c187fec78edcf7745c9926d1a.tar.gz
webtrees-1d4c828636e6545c187fec78edcf7745c9926d1a.tar.bz2
webtrees-1d4c828636e6545c187fec78edcf7745c9926d1a.zip
Fix: need to escape GEDCOM data in changes log
Diffstat (limited to 'app/Http/RequestHandlers/PendingChangesLogData.php')
-rw-r--r--app/Http/RequestHandlers/PendingChangesLogData.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Http/RequestHandlers/PendingChangesLogData.php b/app/Http/RequestHandlers/PendingChangesLogData.php
index d0f5571606..56ad60e494 100644
--- a/app/Http/RequestHandlers/PendingChangesLogData.php
+++ b/app/Http/RequestHandlers/PendingChangesLogData.php
@@ -91,13 +91,13 @@ class PendingChangesLogData implements RequestHandlerInterface
foreach ($differences as $difference) {
switch ($difference[1]) {
case MyersDiff::DELETE:
- $diff_lines[] = '<del>' . $difference[0] . '</del>';
+ $diff_lines[] = '<del>' . e($difference[0]) . '</del>';
break;
case MyersDiff::INSERT:
- $diff_lines[] = '<ins>' . $difference[0] . '</ins>';
+ $diff_lines[] = '<ins>' . e($difference[0]) . '</ins>';
break;
default:
- $diff_lines[] = $difference[0];
+ $diff_lines[] = e($difference[0]);
}
}