patch 845690 show real data before transformation (text_plain__dateformat)

This commit is contained in:
Marc Delisle
2003-12-04 17:57:40 +00:00
parent cb0398dbb3
commit 1cab57dccb
2 changed files with 5 additions and 1 deletions

View File

@@ -7,6 +7,8 @@ $Source$
2003-12-04 Marc Delisle <lem9@users.sourceforge.net> 2003-12-04 Marc Delisle <lem9@users.sourceforge.net>
* lang/estonian: Updated, thanks to Alvar Soome (finsoft). * lang/estonian: Updated, thanks to Alvar Soome (finsoft).
* libraries/transformations/text_plain__dateformat.inc.php:
patch 845690: show real data before transformation
2003-12-04 Garvin Hicking <grinch@supergarv.de> 2003-12-04 Garvin Hicking <grinch@supergarv.de>
* browse_foreigner.php, mult_submits.inc.php, tbl_change.php, * browse_foreigner.php, mult_submits.inc.php, tbl_change.php,

View File

@@ -12,7 +12,9 @@ function PMA_transformation_text_plain__dateformat($buffer, $options = array(),
} }
if (!isset($options[1]) || $options[1] == '') { if (!isset($options[1]) || $options[1] == '') {
$options[1] = $GLOBALS['datefmt']; //$options[1] = $GLOBALS['datefmt'];
$buffer_message = "'" . $buffer . "'";
$options[1] = '<a href="javascript:alert(' . $buffer_message . ')" title=' . $buffer_message . '>' . $GLOBALS['datefmt'] . '</a>';
} }
$timestamp = -1; $timestamp = -1;