While browsing a table, ensure <cr> and <lf> in text/blob fields are displayed
This commit is contained in:
@@ -18,6 +18,8 @@ $Source$
|
|||||||
* lib.inc.php3:
|
* lib.inc.php3:
|
||||||
- fixed again the socket patch, should work now.
|
- fixed again the socket patch, should work now.
|
||||||
- modified the way defines.inc.php3 is loaded.
|
- modified the way defines.inc.php3 is loaded.
|
||||||
|
- while browsing a table, ensure <cr> and <lf> in text/blob fields are
|
||||||
|
displayed (remplaced by the <br /> tag).
|
||||||
* defines.lib.php3; db_details; tbl_properties.php3: ensures each constant
|
* defines.lib.php3; db_details; tbl_properties.php3: ensures each constant
|
||||||
isn't already defined before to define it and renamed PMA_INT_VERSION to
|
isn't already defined before to define it and renamed PMA_INT_VERSION to
|
||||||
PHP_INT_VERSION.
|
PHP_INT_VERSION.
|
||||||
|
12
lib.inc.php3
12
lib.inc.php3
@@ -93,8 +93,6 @@ if (!defined('__LIB_INC__')){
|
|||||||
if (!isset($cfgTextareaRows)) {
|
if (!isset($cfgTextareaRows)) {
|
||||||
$cfgTextareaRows = 7;
|
$cfgTextareaRows = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
// defines wants to connect mysql, and at this place there are no connexion yet...
|
|
||||||
include('./defines.inc.php3');
|
include('./defines.inc.php3');
|
||||||
|
|
||||||
|
|
||||||
@@ -1180,10 +1178,16 @@ var errorMsg2 = '<?php echo(str_replace('\'', '\\\'', $GLOBALS['strNotValidNumbe
|
|||||||
if (strlen($row[$i]) > $GLOBALS['cfgLimitChars']) {
|
if (strlen($row[$i]) > $GLOBALS['cfgLimitChars']) {
|
||||||
$row[$i] = substr($row[$i], 0, $GLOBALS['cfgLimitChars']) . '...';
|
$row[$i] = substr($row[$i], 0, $GLOBALS['cfgLimitChars']) . '...';
|
||||||
}
|
}
|
||||||
echo ' <td> ' . htmlspecialchars($row[$i]) . ' </td>' . "\n";
|
// loic1 : displays <cr>/<lf>
|
||||||
|
// echo ' <td> ' . htmlspecialchars($row[$i]) . ' </td>' . "\n";
|
||||||
|
$row[$i] = ereg_replace("((\015\012)|(\015)|(\012))+", '<br />', htmlspecialchars($row[$i]));
|
||||||
|
echo ' <td> ' . $row[$i] . ' </td>' . "\n";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo ' <td> ' . htmlspecialchars($row[$i]) . ' </td>' . "\n";
|
// loic1 : displays <cr>/<lf>
|
||||||
|
// echo ' <td> ' . htmlspecialchars($row[$i]) . ' </td>' . "\n";
|
||||||
|
$row[$i] = ereg_replace("((\015\012)|(\015)|(\012))+", '<br />', htmlspecialchars($row[$i]));
|
||||||
|
echo ' <td> ' . $row[$i] . ' </td>' . "\n";
|
||||||
}
|
}
|
||||||
} // end for
|
} // end for
|
||||||
// Possibility to have the modify/delete button on the left added
|
// Possibility to have the modify/delete button on the left added
|
||||||
|
Reference in New Issue
Block a user