Permalink
Browse files

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
  • Loading branch information...
1 parent ca5c2e1 commit fcf74f5a80801c81efeb886215914be17989d102 stronk7 committed Jul 5, 2003
Showing with 4 additions and 4 deletions.
  1. +2 −2 backup/backup_version.php
  2. +2 −2 backup/backuplib.php
@@ -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
View
@@ -292,9 +292,9 @@ function full_tag($tag,$level=0,$endline=true,$content,$to_utf=true) {
$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;

0 comments on commit fcf74f5

Please sign in to comment.