summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Noorenberghe <github@matthew.noorenberghe.com>2014-02-23 07:01:18 -0800
committerMatthew Noorenberghe <github@matthew.noorenberghe.com>2014-02-23 07:01:18 -0800
commit34c502fd769034b6631ca3c8380371170040ee2f (patch)
treee0cc126ea964d5cea92fbae39e2b685b54e6f431
parent189a77fc69ce1faa963dfbe570bfb3a3ebb6fac4 (diff)
downloadwebtrees-34c502fd769034b6631ca3c8380371170040ee2f.tar.gz
webtrees-34c502fd769034b6631ca3c8380371170040ee2f.tar.bz2
webtrees-34c502fd769034b6631ca3c8380371170040ee2f.zip
Fix 'undefined' showing as the source name after adding a media link on inverselink.php
-rw-r--r--find.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/find.php b/find.php
index f931f2c320..230a877467 100644
--- a/find.php
+++ b/find.php
@@ -665,7 +665,9 @@ if ($action=="filter") {
usort($mysourcelist, array('WT_GedcomRecord', 'Compare'));
echo '<ul>';
foreach ($mysourcelist as $source) {
- echo '<li><a href="', $source->getHtmlUrl(), '" onclick="pasteid(\'', $source->getXref(), '\');"><span class="list_item">', $source->getFullName(),'</span></a></li>';
+ echo '<li><a href="', $source->getHtmlUrl(), '" onclick="pasteid(\'', $source->getXref(), '\', \'',
+ WT_Filter::escapeJs($source->getFullName()), '\');"><span class="list_item">',
+ $source->getFullName(),'</span></a></li>';
}
echo '</ul>
<p>', WT_I18N::translate('Total sources: %s', count($mysourcelist)), '</p>';