[pve-devel] r6309 - qemu-server/pve2

svn-commits at proxmox.com svn-commits at proxmox.com
Fri Jul 15 08:59:28 CEST 2011


Author: dietmar
Date: 2011-07-15 08:59:28 +0200 (Fri, 15 Jul 2011)
New Revision: 6309

Modified:
   qemu-server/pve2/qm
Log:
encode description when print to console


Modified: qemu-server/pve2/qm
===================================================================
--- qemu-server/pve2/qm	2011-07-15 06:00:24 UTC (rev 6308)
+++ qemu-server/pve2/qm	2011-07-15 06:59:28 UTC (rev 6309)
@@ -383,6 +383,9 @@
 		    my $config = shift;
 		    foreach my $k (sort (keys %$config)) {
 			my $v = $config->{$k};
+			if ($k eq 'description') {
+			    $v = PVE::Tools::encode_text($v);
+			}
 			print "$k: $v\n";
 		    }
 		}],




More information about the pve-devel mailing list