Permalink
Browse files

Added backup_todb to addslashes and decode

from UTF before inserting info in db.
  • Loading branch information...
stronk7
stronk7 committed May 31, 2003
1 parent 04b353e commit 6d18c5a2142fbbac84220754796b89190f9992f8
Showing with 7 additions and 0 deletions.
  1. +7 −0 backup/lib.php
View
@@ -348,4 +348,11 @@ function backup_getid ($backup_unique_code, $table, $old_id) {
return $status;
}
+
+ //This function is used to add slashes and decode from UTF-8
+ //It's used intensivelly when restoring modules and saving them in db
+ function backup_todb ($data) {
+ return addslashes(utf8_decode($data));
+ }
+
?>

0 comments on commit 6d18c5a

Please sign in to comment.