From 2263842441c696d34caa7d5dbac9a57a9e8179eb Mon Sep 17 00:00:00 2001 From: Megan Watson Date: Fri, 11 Jan 2008 11:42:22 +0000 Subject: [PATCH] KTS-2790 "CLONE -Backslashes appear before every quote and double quote throughout our version of knowledgetree(SUP-532)" Fixed. Added an upgrade script to remove the backslashes. --- sql/mysql/upgrade/3.4.6/remove_backslashes.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+), 0 deletions(-) create mode 100644 sql/mysql/upgrade/3.4.6/remove_backslashes.sql diff --git a/sql/mysql/upgrade/3.4.6/remove_backslashes.sql b/sql/mysql/upgrade/3.4.6/remove_backslashes.sql new file mode 100644 index 0000000..9b5ed45 --- /dev/null +++ b/sql/mysql/upgrade/3.4.6/remove_backslashes.sql @@ -0,0 +1,15 @@ +/* Script to remove back slashes from ' and " and \ + * From the welcome dashlet, folder names and document titles. + */ + +UPDATE help_replacement +SET description = replace(replace(replace(description, '\\\\', '\\'), '\\\"', '\"'), '\\\'', '\''), + title = replace(replace(replace(title, '\\\\', '\\'), '\\\"', '\"'), '\\\'', '\''); + +UPDATE document_metadata_version +SET name = replace(replace(replace(name, '\\\\', '\\'), '\\\"', '\"'), '\\\'', '\''), + description = replace(replace(replace(description, '\\\\', '\\'), '\\\"', '\"'), '\\\'', '\''); + +UPDATE folders +SET name = replace(replace(replace(name, '\\\\', '\\'), '\\\"', '\"'), '\\\'', '\''), + description = replace(replace(replace(description, '\\\\', '\\'), '\\\"', '\"'), '\\\'', '\''); \ No newline at end of file -- libgit2 0.21.4