diff options
| author | Matthew Noorenberghe <github@matthew.noorenberghe.com> | 2014-02-23 07:01:18 -0800 |
|---|---|---|
| committer | Matthew Noorenberghe <github@matthew.noorenberghe.com> | 2014-02-23 07:01:18 -0800 |
| commit | 34c502fd769034b6631ca3c8380371170040ee2f (patch) | |
| tree | e0cc126ea964d5cea92fbae39e2b685b54e6f431 | |
| parent | 189a77fc69ce1faa963dfbe570bfb3a3ebb6fac4 (diff) | |
| download | webtrees-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.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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>'; |
