fixed help escaping
This commit is contained in:
parent
779941bda0
commit
50f9e17be4
|
@ -654,10 +654,8 @@ function printHelpLink($entry, $number, $module='', $scope='') {
|
|||
$message .= '<br><br><hr class="dotted">' . _('Technical name') . ': <i>' . $entry['attr'] . '</i>';
|
||||
}
|
||||
// replace special characters
|
||||
$message = preg_replace('/[\\\\]{2}/', '\\\\', $message);
|
||||
$title = preg_replace('/[\\\\]{2}/', '\\\\', $title);
|
||||
$message = str_replace(array('\\', '"', "\n"), array('\\\\', '"', ''), $message);
|
||||
$title = str_replace(array('\\', "'", '"', "\n"), array('\\\\', "\\'", '"', ''), $title);
|
||||
$message = htmlspecialchars($message);
|
||||
$title = htmlspecialchars($title);
|
||||
echo "<a class=\"margin2\" href=\"" . $helpPath . "help.php?module=$module&HelpNumber=". $number . "&scope=" . $scope . "\" ";
|
||||
echo "target=\"help\">";
|
||||
echo "<img helptitle=\"" . $title . "\" helpdata=\"" . $message . "\" class=\"align-middle\" width=16 height=16 src=\"../$helpPath/graphics/help.png\" alt=\"" . _('Help') . "\">";
|
||||
|
|
Loading…
Reference in New Issue