XHTML fix

This commit is contained in:
Alexander M. Turek
2002-09-11 17:06:45 +00:00
parent 5d5f436bc8
commit f36ffad8f1
2 changed files with 4 additions and 2 deletions

View File

@@ -10,10 +10,12 @@ $Source$
2002-09-11 Michal Cihar <nijel@users.sourceforge.net>
* lang/czech-*.inc.php3: Updates.
2002-09-11 Alexander M. Turek <rabus@users.sourceforge.net>
* libraries/config_import.lib.php3: Another fix against bug #582890.
* lang/german-*.inc.php3: Updates.
* libraries/sqlparser.lib.php3: XHTML fix (nl2br is not XHTML compilant
before PHP 4.0.5).
2002-09-10: Robin Johnson <robbat2@users.sourceforge.net>
* libraries/common.lib.php3, main.php3:

View File

@@ -113,7 +113,7 @@ if (!defined('PMA_SQP_LIB_INCLUDED')) {
if (PMA_PHP_INT_VERSION >= 40001 && @function_exists('gzcompress')) {
$encodedstr = gzcompress($debugstr, 9);
}
$encodedstr = nl2br(chunk_split(base64_encode($encodedstr)));
$encodedstr = preg_replace("/(\015\012)|(\015)|(\012)/", '<br />' . "\n", chunk_split(base64_encode($encodedstr)));
echo $GLOBALS['strSQLParserBugMessage'] . '<br />' . "\n"
. '----' . $GLOBALS['strBeginCut'] . '----' . '<br />' . "\n"