diff options
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/classes/class_treenav.php | 6 | ||||
| -rw-r--r-- | includes/controllers/individual_ctrl.php | 4 | ||||
| -rw-r--r-- | includes/controllers/search_ctrl.php | 2 | ||||
| -rw-r--r-- | includes/functions/functions.php | 14 | ||||
| -rw-r--r-- | includes/functions/functions_edit.php | 10 | ||||
| -rw-r--r-- | includes/functions/functions_mediadb.php | 6 | ||||
| -rw-r--r-- | includes/functions/functions_print.php | 7 | ||||
| -rw-r--r-- | includes/functions/functions_print_facts.php | 20 | ||||
| -rw-r--r-- | includes/functions/functions_print_lists.php | 2 |
9 files changed, 35 insertions, 36 deletions
diff --git a/includes/classes/class_treenav.php b/includes/classes/class_treenav.php index 949546f460..9e02979216 100644 --- a/includes/classes/class_treenav.php +++ b/includes/classes/class_treenav.php @@ -173,7 +173,7 @@ class TreeNav { <table> <tr><td><a href="#" onclick="<?php print $this->name; ?>.zoomIn(); return false;"><img src="<?php print WT_SERVER_NAME.WT_SCRIPT_PATH.$WT_IMAGES['zoomin'];?>" border="0" alt="zoomin" /></a></td></tr> <tr><td><a href="#" onclick="<?php print $this->name; ?>.zoomOut(); return false;"><img src="<?php print WT_SERVER_NAME.WT_SCRIPT_PATH.$WT_IMAGES['zoomout'];?>" border="0" alt="zoomout" /></a></td></tr> - <tr><td <?php if (is_null($this->rootPerson) || WT_SCRIPT_NAME=='treenav.php') print "style=\"display: none;\"";?>><a id="biglink" href="#" onclick="<?php print $this->name; ?>.loadBigTree('<?php if (!is_null($this->rootPerson)) print $this->rootPerson->getXref();?>','<?php print htmlentities($GEDCOM,ENT_COMPAT,'UTF-8');?>'); return false;" title="<?php print i18n::translate('View this tree in the full page interactive tree'); ?>"><img src="<?php print WT_SERVER_NAME.WT_SCRIPT_PATH.$WT_IMAGES['tree'];?>" border="0" alt="" /></a></td></tr> + <tr><td <?php if (is_null($this->rootPerson) || WT_SCRIPT_NAME=='treenav.php') print "style=\"display: none;\"";?>><a id="biglink" href="#" onclick="<?php print $this->name; ?>.loadBigTree('<?php if (!is_null($this->rootPerson)) print $this->rootPerson->getXref();?>','<?php echo htmlspecialchars($GEDCOM); ?>'); return false;" title="<?php print i18n::translate('View this tree in the full page interactive tree'); ?>"><img src="<?php print WT_SERVER_NAME.WT_SCRIPT_PATH.$WT_IMAGES['tree'];?>" border="0" alt="" /></a></td></tr> <tr><td><a href="#" onclick="<?php print $this->name; ?>.toggleSpouses('<?php if ($this->rootPerson!=null) print $this->rootPerson->getXref(); ?>'); return false;" title="<?php print i18n::translate('Show or hide multiple spouses'); ?>"><img src="<?php print WT_SERVER_NAME.WT_SCRIPT_PATH.$WT_IMAGES['sfamily']; ?>" border="0" alt="" /></a></td></tr> <tr><td><?php echo help_link('treenav.php'); ?></td></tr> <tr><td><img id="<?php print $this->name; ?>_loading" src="<?php print WT_SERVER_NAME.WT_SCRIPT_PATH; ?>images/loading.gif" style="display: none;" alt="Loading..." /></td></tr> @@ -308,7 +308,7 @@ class TreeNav { echo $thumbnail; } ?> <a href="<?php print $person->getLinkUrl(); ?>" onclick="if (!<?php print $this->name;?>.collapseBox) return false;"><?php print $person->getSexImage().PrintReady($name); ?></a> - <img src="<?php print WT_SERVER_NAME.WT_SCRIPT_PATH.$WT_IMAGES["tree"];?>" border="0" width="15" onclick="<?php print $this->name;?>.newRoot('<?php print $person->getXref();?>', <?php print $this->name;?>.innerPort, '<?php print htmlentities($GEDCOM,ENT_COMPAT,'UTF-8'); ?>');" /> + <img src="<?php print WT_SERVER_NAME.WT_SCRIPT_PATH.$WT_IMAGES["tree"];?>" border="0" width="15" onclick="<?php print $this->name;?>.newRoot('<?php print $person->getXref();?>', <?php print $this->name;?>.innerPort, '<?php echo htmlspecialchars($GEDCOM); ?>');" /> </span><br /> <div class="details1 indent"> <?php @@ -347,7 +347,7 @@ class TreeNav { } ?> <a href="<?php print $spouse->getLinkUrl(); ?>" onclick="if (!<?php print $this->name;?>.collapseBox) return false;"> <?php print $spouse->getSexImage().PrintReady($name); ?></a> - <img src="<?php print WT_SERVER_NAME.WT_SCRIPT_PATH.$WT_IMAGES["tree"];?>" border="0" width="15" onclick="<?php print $this->name;?>.newRoot('<?php print $spouse->getXref();?>', <?php print $this->name;?>.innerPort, '<?php print htmlentities($GEDCOM,ENT_COMPAT,'UTF-8'); ?>');" /> + <img src="<?php print WT_SERVER_NAME.WT_SCRIPT_PATH.$WT_IMAGES["tree"];?>" border="0" width="15" onclick="<?php print $this->name;?>.newRoot('<?php print $spouse->getXref();?>', <?php print $this->name;?>.innerPort, '<?php echo htmlspecialchars($GEDCOM); ?>');" /> <br /> <div class="details1 indent"> <?php diff --git a/includes/controllers/individual_ctrl.php b/includes/controllers/individual_ctrl.php index 8119715905..c842fabc4e 100644 --- a/includes/controllers/individual_ctrl.php +++ b/includes/controllers/individual_ctrl.php @@ -318,13 +318,13 @@ class IndividualController extends BaseController { $name = $this->indi->getFullName(); if (WT_USE_LIGHTBOX) { - print "<a href=\"" . $firstmediarec["file"] . "\" rel=\"clearbox[general_1]\" rev=\"" . $mid . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name, ENT_QUOTES, 'UTF-8')) . "\">" . "\n"; + print "<a href=\"" . $firstmediarec["file"] . "\" rel=\"clearbox[general_1]\" rev=\"" . $mid . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name)) . "\">" . "\n"; } else if (!$USE_MEDIA_VIEWER && $imgsize) { $result .= "<a href=\"javascript:;\" onclick=\"return openImage('".urlencode($firstmediarec["file"])."', $imgwidth, $imgheight);\">"; } else { $result .= "<a href=\"mediaviewer.php?mid={$mid}\">"; } - $result .= "<img src=\"$filename\" align=\"left\" class=\"".$class."\" border=\"none\" title=\"".PrintReady(htmlspecialchars(strip_tags($name), ENT_QUOTES, 'UTF-8'))."\" alt=\"".PrintReady(htmlspecialchars(strip_tags($name), ENT_QUOTES, 'UTF-8'))."\" />"; + $result .= "<img src=\"$filename\" align=\"left\" class=\"".$class."\" border=\"none\" title=\"".PrintReady(htmlspecialchars(strip_tags($name)))."\" alt=\"".PrintReady(htmlspecialchars(strip_tags($name)))."\" />"; $result .= "</a>"; return $result; } diff --git a/includes/controllers/search_ctrl.php b/includes/controllers/search_ctrl.php index 35e126cde8..e06af63d9b 100644 --- a/includes/controllers/search_ctrl.php +++ b/includes/controllers/search_ctrl.php @@ -121,7 +121,7 @@ class SearchController extends BaseController { $this->myquery=""; } else { $this->query = $_REQUEST["query"]; - $this->myquery = htmlspecialchars($this->query,ENT_COMPAT,'UTF-8'); + $this->myquery = htmlspecialchars($this->query); } } if (isset ($_REQUEST["replace"])) { diff --git a/includes/functions/functions.php b/includes/functions/functions.php index 3a81689ebf..0c82fa38fb 100644 --- a/includes/functions/functions.php +++ b/includes/functions/functions.php @@ -114,7 +114,7 @@ function encode_url($url, $entities=true) { $url = decode_url($url, $entities); // Make sure we don't do any double conversions $url = str_replace(array(' ', '+', '@#', '"', "'"), array('%20', '%2b', '@%23', '%22', '%27'), $url); if ($entities) { - $url = htmlspecialchars($url, ENT_COMPAT, 'UTF-8'); + $url = htmlspecialchars($url); } return $url; } @@ -3374,28 +3374,28 @@ function mediaFileInfo($fileName, $thumbName, $mid, $name='', $notes='', $obeyVi require_once WT_ROOT.'modules/lightbox/lb_defaultconfig.php'; switch ($type) { case 'url_flv': - $url = encode_url('js/jw_player/flvVideo.php?flvVideo='.($fileName)) . "\" rel='clearbox(500, 392, click)' rev=\"" . $mid . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name, ENT_COMPAT, 'UTF-8')) . "::" . htmlspecialchars($notes, ENT_COMPAT, 'UTF-8'); + $url = encode_url('js/jw_player/flvVideo.php?flvVideo='.($fileName)) . "\" rel='clearbox(500, 392, click)' rev=\"" . $mid . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name)) . "::" . htmlspecialchars($notes); break 2; case 'local_flv': - $url = encode_url('js/jw_player/flvVideo.php?flvVideo='.(WT_SERVER_NAME.WT_SCRIPT_PATH.$fileName)) . "\" rel='clearbox(500, 392, click)' rev=\"" . $mid . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name, ENT_COMPAT, 'UTF-8')) . "::" . htmlspecialchars($notes, ENT_COMPAT, 'UTF-8'); + $url = encode_url('js/jw_player/flvVideo.php?flvVideo='.(WT_SERVER_NAME.WT_SCRIPT_PATH.$fileName)) . "\" rel='clearbox(500, 392, click)' rev=\"" . $mid . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name)) . "::" . htmlspecialchars($notes); break 2; case 'url_wmv': - $url = encode_url('js/jw_player/wmvVideo.php?wmvVideo='.($fileName)) . "\" rel='clearbox(500, 392, click)' rev=\"" . $mid . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name, ENT_COMPAT, 'UTF-8')) . "::" . htmlspecialchars($notes, ENT_COMPAT, 'UTF-8'); + $url = encode_url('js/jw_player/wmvVideo.php?wmvVideo='.($fileName)) . "\" rel='clearbox(500, 392, click)' rev=\"" . $mid . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name)) . "::" . htmlspecialchars($notes); break 2; case 'local_audio': case 'local_wmv': - $url = encode_url('js/jw_player/wmvVideo.php?wmvVideo='.(WT_SERVER_NAME.WT_SCRIPT_PATH.$fileName)) . "\" rel='clearbox(500, 392, click)' rev=\"" . $mid . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name, ENT_COMPAT, 'UTF-8')) . "::" . htmlspecialchars($notes, ENT_COMPAT, 'UTF-8'); + $url = encode_url('js/jw_player/wmvVideo.php?wmvVideo='.(WT_SERVER_NAME.WT_SCRIPT_PATH.$fileName)) . "\" rel='clearbox(500, 392, click)' rev=\"" . $mid . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name)) . "::" . htmlspecialchars($notes); break 2; case 'url_image': case 'local_image': - $url = encode_url($fileName) . "\" rel=\"clearbox[general]\" rev=\"" . $mid . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name, ENT_COMPAT, 'UTF-8')) . "::" . htmlspecialchars($notes, ENT_COMPAT, 'UTF-8'); + $url = encode_url($fileName) . "\" rel=\"clearbox[general]\" rev=\"" . $mid . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name)) . "::" . htmlspecialchars($notes); break 2; case 'url_picasa': case 'url_page': case 'url_other': case 'local_page': // case 'local_other': - $url = encode_url($fileName) . "\" rel='clearbox({$LB_URL_WIDTH}, {$LB_URL_HEIGHT}, click)' rev=\"" . $mid . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name, ENT_COMPAT, 'UTF-8')) . "::" . htmlspecialchars($notes, ENT_COMPAT, 'UTF-8'); + $url = encode_url($fileName) . "\" rel='clearbox({$LB_URL_WIDTH}, {$LB_URL_HEIGHT}, click)' rev=\"" . $mid . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name)) . "::" . htmlspecialchars($notes); break 2; case 'url_streetview': if (WT_SCRIPT_NAME != "media.php") { diff --git a/includes/functions/functions_edit.php b/includes/functions/functions_edit.php index 947083f8fb..b7e77d3ea3 100644 --- a/includes/functions/functions_edit.php +++ b/includes/functions/functions_edit.php @@ -1532,22 +1532,22 @@ function add_simple_tag($tag, $upperlevel='', $label='', $readOnly='', $noClose= echo "</select>"; } else if (($fact=="NAME" && $upperlevel!='REPO') || $fact=="_MARNM") { // Populated in javascript from sub-tags - echo "<input type=\"hidden\" id=\"", $element_id, "\" name=\"", $element_name, "\" onchange=\"updateTextName('", $element_id, "');\" value=\"", PrintReady(htmlspecialchars($value, ENT_COMPAT, 'UTF-8')), "\" />"; - echo "<span id=\"", $element_id, "_display\">", PrintReady(htmlspecialchars($value, ENT_COMPAT, 'UTF-8')), "</span>"; + echo "<input type=\"hidden\" id=\"", $element_id, "\" name=\"", $element_name, "\" onchange=\"updateTextName('", $element_id, "');\" value=\"", PrintReady(htmlspecialchars($value)), "\" />"; + echo "<span id=\"", $element_id, "_display\">", PrintReady(htmlspecialchars($value)), "</span>"; echo " <a href=\"#edit_name\" onclick=\"convertHidden('", $element_id, "'); return false;\"> "; if (isset($WT_IMAGES["edit_indi"])) echo "<img src=\"", $WT_IMAGES["edit_indi"], "\" border=\"0\" width=\"20\" alt=\"", i18n::translate('Edit name'), "\" align=\"top\" />"; else echo "<span class=\"age\">[", i18n::translate('Edit name'), "]</span>"; echo "</a>"; } else { // textarea - if ($rows>1) echo "<textarea id=\"", $element_id, "\" name=\"", $element_name, "\" rows=\"", $rows, "\" cols=\"", $cols, "\">", PrintReady(htmlspecialchars($value, ENT_COMPAT, 'UTF-8')), "</textarea><br />"; + if ($rows>1) echo "<textarea id=\"", $element_id, "\" name=\"", $element_name, "\" rows=\"", $rows, "\" cols=\"", $cols, "\">", PrintReady(htmlspecialchars($value)), "</textarea><br />"; else { // text // If using GEDFact-assistant window if ($action=="addnewnote_assisted") { - echo "<input type=\"text\" id=\"", $element_id, "\" name=\"", $element_name, "\" value=\"", PrintReady(htmlspecialchars($value,ENT_COMPAT,'UTF-8')), "\" style=\"width:4.1em;\" dir=\"ltr\""; + echo "<input type=\"text\" id=\"", $element_id, "\" name=\"", $element_name, "\" value=\"", PrintReady(htmlspecialchars($value)), "\" style=\"width:4.1em;\" dir=\"ltr\""; }else{ - echo "<input type=\"text\" id=\"", $element_id, "\" name=\"", $element_name, "\" value=\"", PrintReady(htmlspecialchars($value,ENT_COMPAT,'UTF-8')), "\" size=\"", $cols, "\" dir=\"ltr\""; + echo "<input type=\"text\" id=\"", $element_id, "\" name=\"", $element_name, "\" value=\"", PrintReady(htmlspecialchars($value)), "\" size=\"", $cols, "\" dir=\"ltr\""; } echo " class=\"{$fact}\""; echo " autocomplete=\"off\""; diff --git a/includes/functions/functions_mediadb.php b/includes/functions/functions_mediadb.php index e7abbbd271..95aab116e1 100644 --- a/includes/functions/functions_mediadb.php +++ b/includes/functions/functions_mediadb.php @@ -1235,12 +1235,12 @@ function show_media_form($pid, $action = "newentry", $filename = "", $linktoid = echo "\n<tr>"; echo "<td class=\"descriptionbox $TEXT_DIRECTION wrap width25\">\n"; - echo "<input name=\"oldFilename\" type=\"hidden\" value=\"" . addslashes($fileName) . "\" />"; + echo "<input name=\"oldFilename\" type=\"hidden\" value=\"" . htmlspecialchars($fileName) . "\" />"; echo i18n::translate('File name on server'), help_link('upload_server_file'); echo "</td>\n"; echo "<td class=\"optionbox wrap $TEXT_DIRECTION wrap\">"; if (WT_USER_GEDCOM_ADMIN) { - echo "<input name=\"filename\" type=\"text\" value=\"" . htmlentities($fileName, ENT_COMPAT, 'UTF-8') . "\" size=\"40\""; + echo "<input name=\"filename\" type=\"text\" value=\"" . htmlspecialchars($fileName) . "\" size=\"40\""; if ($isExternal) echo " />"; else @@ -1253,7 +1253,7 @@ function show_media_form($pid, $action = "newentry", $filename = "", $linktoid = print " alt=\"\" title=\"\" />"; } */ echo $fileName; - echo "<input name=\"filename\" type=\"hidden\" value=\"" . htmlentities($fileName, ENT_COMPAT, 'UTF-8') . "\" size=\"40\" />"; + echo "<input name=\"filename\" type=\"hidden\" value=\"" . htmlspecialchars($fileName) . "\" size=\"40\" />"; } echo "</td>"; echo "</tr>"; diff --git a/includes/functions/functions_print.php b/includes/functions/functions_print.php index 6713c9bf2b..0c8de0fe05 100644 --- a/includes/functions/functions_print.php +++ b/includes/functions/functions_print.php @@ -261,13 +261,13 @@ function print_pedigree_person($pid, $style=1, $count=0, $personcount="1") { $imgheight = $imgsize[1]+150; if (WT_USE_LIGHTBOX) { - $thumbnail .= "<a href=\"" . $object["file"] . "\" rel=\"clearbox[general_2]\" rev=\"" . $object['mid'] . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name, ENT_QUOTES, 'UTF-8')) . "\">"; + $thumbnail .= "<a href=\"" . $object["file"] . "\" rel=\"clearbox[general_2]\" rev=\"" . $object['mid'] . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name)) . "\">"; } else if (!empty($object['mid']) && $USE_MEDIA_VIEWER) { $thumbnail .= "<a href=\"".encode_url("mediaviewer.php?mid=".$object['mid'])."\" >"; } else { $thumbnail .= "<a href=\"javascript:;\" onclick=\"return openImage('".rawurlencode($object["file"])."', $imgwidth, $imgheight);\">"; } - $thumbnail .= "<img id=\"box-$boxID-thumb\" src=\"".$whichFile."\" vspace=\"0\" hspace=\"0\" class=\"$class\" alt=\"\" title=\"".PrintReady(htmlspecialchars(strip_tags($name), ENT_QUOTES, 'UTF-8'))."\""; + $thumbnail .= "<img id=\"box-$boxID-thumb\" src=\"".$whichFile."\" vspace=\"0\" hspace=\"0\" class=\"$class\" alt=\"\" title=\"".PrintReady(htmlspecialchars(strip_tags($name)))."\""; if (!$show_full) $thumbnail .= " style=\"display: none;\""; if ($imgsize) $thumbnail .= " /></a>"; else $thumbnail .= " />"; @@ -291,7 +291,6 @@ function print_pedigree_person($pid, $style=1, $count=0, $personcount="1") { } //-- find additional name $addname=$person->getAddName(); - //$name = PrintReady(htmlspecialchars(strip_tags($name), ENT_QUOTES, 'UTF-8')); $name = PrintReady($name); // add optional CSS style for each fact @@ -387,7 +386,7 @@ function print_header($title) { // The title often includes the names of records, which may have markup // that cannot be used in the page title. - $title=html_entity_decode(strip_tags($title), ENT_QUOTES, 'UTF-8'); + $title=strip_tags($title); if ($META_TITLE) { $title.=' - '.$META_TITLE; diff --git a/includes/functions/functions_print_facts.php b/includes/functions/functions_print_facts.php index 9686ef3a59..79bcf5c23c 100644 --- a/includes/functions/functions_print_facts.php +++ b/includes/functions/functions_print_facts.php @@ -86,7 +86,7 @@ function print_fact(&$eventObj, $noedit=false) { } $rawEvent = $eventObj->getDetail(); - $event = htmlspecialchars($rawEvent, ENT_COMPAT, 'UTF-8'); + $event = htmlspecialchars($rawEvent); $factrec = $eventObj->getGedcomRecord(); $linenum = $eventObj->getLineNumber(); $parent = $eventObj->getParentObject(); @@ -389,7 +389,7 @@ function print_fact(&$eventObj, $noedit=false) { } else { echo "<span class=\"label\">", $label, ": </span>"; } - echo htmlspecialchars($match[$i][2], ENT_COMPAT, 'UTF-8'); + echo htmlspecialchars($match[$i][2]); echo "<br />"; } } @@ -571,11 +571,11 @@ function print_media_links($factrec, $level, $pid='') { //LBox -------- change for Lightbox Album -------------------------------------------- if (WT_USE_LIGHTBOX && preg_match("/\.(jpe?g|gif|png)$/i", $mainMedia)) { $name = trim($row["m_titl"]); - echo "<a href=\"" . $mainMedia . "\" rel=\"clearbox[general_1]\" rev=\"" . $media_id . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name, ENT_COMPAT, 'UTF-8')) . "\">" . "\n"; + echo "<a href=\"" . $mainMedia . "\" rel=\"clearbox[general_1]\" rev=\"" . $media_id . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name)) . "\">" . "\n"; } else if (WT_USE_LIGHTBOX && preg_match("/\.(pdf|avi|txt)$/i", $mainMedia)) { require_once WT_ROOT.'modules/lightbox/lb_defaultconfig.php'; $name = trim($row["m_titl"]); - echo "<a href=\"" . $mainMedia . "\" rel='clearbox({$LB_URL_WIDTH}, {$LB_URL_HEIGHT}, click)' rev=\"" . $media_id . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name, ENT_COMPAT, 'UTF-8')) . "\">" . "\n"; + echo "<a href=\"" . $mainMedia . "\" rel='clearbox({$LB_URL_WIDTH}, {$LB_URL_HEIGHT}, click)' rev=\"" . $media_id . "::" . $GEDCOM . "::" . PrintReady(htmlspecialchars($name)) . "\">" . "\n"; // extra for Streetview ---------------------------------------- } else if (WT_USE_LIGHTBOX && strpos($row["m_file"], 'http://maps.google.')===0) { echo '<iframe style="float:left; padding:5px;" width="264" height="176" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="', $row["m_file"], '&output=svembed"></iframe>'; @@ -1430,7 +1430,7 @@ function print_main_media_row($rtype, $rowm, $pid) { $before = substr($haystack, 0, strpos($haystack, $needle)); $after = substr(strstr($haystack, $needle), strlen($needle)); $final = $before.$needle.$after; - $notes = PrintReady(htmlspecialchars(addslashes(print_fact_notes($final, 1, true, true)), ENT_COMPAT, 'UTF-8')); + $notes = PrintReady(htmlspecialchars(addslashes(print_fact_notes($final, 1, true, true)))); $name = trim($rowm['m_titl']); @@ -1444,23 +1444,23 @@ function print_main_media_row($rtype, $rowm, $pid) { if (strpos($mainMedia, 'http://maps.google.')===0) { // } else { - echo ' alt="', PrintReady(htmlspecialchars($name, ENT_COMPAT, 'UTF-8')), '" title="', PrintReady(htmlspecialchars($name, ENT_COMPAT, 'UTF-8')), '" /></a>'; + echo ' alt="', PrintReady(htmlspecialchars($name)), '" title="', PrintReady(htmlspecialchars($name)), '" /></a>'; } if(empty($SEARCH_SPIDER)) { echo "<a href=\"", encode_url("mediaviewer.php?mid={$rowm['m_media']}"), "\">"; } if ($TEXT_DIRECTION=="rtl" && !hasRTLText($mediaTitle)) { - echo "<i>", getLRM(), PrintReady(htmlspecialchars($mediaTitle, ENT_COMPAT, 'UTF-8')); + echo "<i>", getLRM(), PrintReady(htmlspecialchars($mediaTitle)); } else { - echo "<i>", PrintReady(htmlspecialchars($mediaTitle, ENT_COMPAT, 'UTF-8')); + echo "<i>", PrintReady(htmlspecialchars($mediaTitle)); } $addtitle = get_gedcom_value("TITL:_HEB", 2, $rowm["m_gedrec"]); if (empty($addtitle)) $addtitle = get_gedcom_value("TITL:_HEB", 1, $rowm["m_gedrec"]); - if (!empty($addtitle)) echo "<br />\n", PrintReady(htmlspecialchars($addtitle, ENT_COMPAT, 'UTF-8')); + if (!empty($addtitle)) echo "<br />\n", PrintReady(htmlspecialchars($addtitle)); $addtitle = get_gedcom_value("TITL:ROMN", 2, $rowm["m_gedrec"]); if (empty($addtitle)) $addtitle = get_gedcom_value("TITL:ROMN", 1, $rowm["m_gedrec"]); - if (!empty($addtitle)) echo "<br />\n", PrintReady(htmlspecialchars($addtitle, ENT_COMPAT, 'UTF-8')); + if (!empty($addtitle)) echo "<br />\n", PrintReady(htmlspecialchars($addtitle)); echo "</i>"; if(empty($SEARCH_SPIDER)) { echo "</a>"; diff --git a/includes/functions/functions_print_lists.php b/includes/functions/functions_print_lists.php index 4c9749c8f4..1065053066 100644 --- a/includes/functions/functions_print_lists.php +++ b/includes/functions/functions_print_lists.php @@ -1179,7 +1179,7 @@ function format_surname_table($surnames, $type) { } $html.='</td>'; // Hidden column for sorting surnames - $html.='<td style="display:none;">'.htmlspecialchars($surn, ENT_COMPAT, 'UTF-8').'</td>'; + $html.='<td style="display:none;">'.htmlspecialchars($surn).'</td>'; // Surname count $html.='<td class="list_value_wrap">'; if (count($surns)==1) { |
