Changed the backup output to convert every "\r\n\" and "\r"
(Windows and Mac line-break sequences) to "\n" (Unix line-break sequence) to be treated apropiately by nl2br function. Updated to 0.8.1 alpha
This commit is contained in:
@@ -5,6 +5,6 @@
|
||||
// database (backup_version) to determine whether upgrades should
|
||||
// be performed (see db/backup_*.php)
|
||||
|
||||
$backup_version = 2003070402; // The current version is a date (YYYYMMDDXX)
|
||||
$backup_version = 2003070600; // The current version is a date (YYYYMMDDXX)
|
||||
|
||||
$backup_release = "0.8.0 alpha<br><font color=red>Broken compatibility with previous backups !!</font>"; // User-friendly version number
|
||||
$backup_release = "0.8.1 alpha"; // User-friendly version number
|
||||
|
||||
@@ -292,9 +292,9 @@
|
||||
$st = start_tag($tag,$level,$endline);
|
||||
$co="";
|
||||
if ($to_utf) {
|
||||
$co = utf8_encode(htmlspecialchars($content));
|
||||
$co = preg_replace("/\r\n|\r/", "\n", utf8_encode(htmlspecialchars($content)));
|
||||
} else {
|
||||
$co = htmlspecialchars($content);
|
||||
$co = preg_replace("/\r\n|\r/", "\n", htmlspecialchars($content));
|
||||
}
|
||||
$et = end_tag($tag,0,true);
|
||||
return $st.$co.$et;
|
||||
|
||||
Reference in New Issue
Block a user