bug #2931429 Editing long triggers

This commit is contained in:
Marc Delisle
2010-03-06 13:16:55 +00:00
parent ec5d47369c
commit 77d8831276
3 changed files with 6 additions and 5 deletions

View File

@@ -1764,14 +1764,14 @@ function PMA_linkOrButton($url, $message, $tag_params = array(),
. implode(' ', $tag_params_strings)
. ' value="' . htmlspecialchars($message) . '" />';
} else {
$displayed_message = htmlspecialchars(
preg_replace('/^.*\salt="([^"]*)".*$/si', '\1',
$message));
$ret .= '<input type="image"' . $submit_name . ' '
. implode(' ', $tag_params_strings)
. ' src="' . preg_replace(
'/^.*\ssrc="([^"]*)".*$/si', '\1', $message) . '"'
. ' value="' . htmlspecialchars(
preg_replace('/^.*\salt="([^"]*)".*$/si', '\1',
$message))
. '" />';
. ' value="' . $displayed_message . '" title="' . $displayed_message . '" />';
}
} else {
$message = trim(strip_tags($message));