1 |
diff -Nur e-smith-hosts-2.4.0.old8723/root/etc/e-smith/db/hosts/migrate/30sanitise_host_comment e-smith-hosts-2.4.0.bz8723/root/etc/e-smith/db/hosts/migrate/30sanitise_host_comment |
diff -Nur e-smith-hosts-2.4.0.old8723/root/etc/e-smith/db/hosts/migrate/30sanitise_host_comment e-smith-hosts-2.4.0.bz8723/root/etc/e-smith/db/hosts/migrate/30sanitise_host_comment |
2 |
--- e-smith-hosts-2.4.0.old8723/root/etc/e-smith/db/hosts/migrate/30sanitise_host_comment 1970-01-01 01:00:00.000000000 +0100 |
--- e-smith-hosts-2.4.0.old8723/root/etc/e-smith/db/hosts/migrate/30sanitise_host_comment 1970-01-01 01:00:00.000000000 +0100 |
3 |
+++ e-smith-hosts-2.4.0.bz8723/root/etc/e-smith/db/hosts/migrate/30sanitise_host_comment 2015-01-21 22:49:42.441035251 +0100 |
+++ e-smith-hosts-2.4.0.bz8723/root/etc/e-smith/db/hosts/migrate/30sanitise_host_comment 2015-01-22 08:30:50.193365257 +0100 |
4 |
@@ -0,0 +1,13 @@ |
@@ -0,0 +1,10 @@ |
5 |
+{ |
+{ |
6 |
+ #Added for bug 8723 & bug 8806 |
+ # Purge quoting chars in comments to fix bug 8723 & bug 8806 |
7 |
+ my @hosts = $DB->keys; |
+ foreach my $host ($DB->get_all) |
8 |
+ foreach my $host (@hosts) |
+ { |
9 |
+ { |
+ my $comment = $host->prop('Comment'); |
10 |
+ my $comment = $DB->get_prop("$host",'Comment')||''; |
+ next unless $comment; |
11 |
+ if ($comment ne '') |
+ $comment =~ s/['"]//g; |
12 |
+ { |
+ $host->merge_props(Comment => $comment); |
13 |
+ $comment =~ s/['"]//g; |
+ } |
|
+ $DB->set_prop("$host",'Comment',"$comment"); |
|
|
+ } |
|
|
+ } |
|
14 |
+} |
+} |
15 |
diff -Nur e-smith-hosts-2.4.0.old8723/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/hostentries e-smith-hosts-2.4.0.bz8723/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/hostentries |
diff -Nur e-smith-hosts-2.4.0.old8723/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/hostentries e-smith-hosts-2.4.0.bz8723/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/hostentries |
16 |
--- e-smith-hosts-2.4.0.old8723/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/hostentries 2015-01-18 11:25:40.356221775 +0100 |
--- e-smith-hosts-2.4.0.old8723/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/hostentries 2015-01-18 11:25:40.356221775 +0100 |