]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/Tools.pm
mark decode_utf8_parameters() as depreciated
[pve-common.git] / src / PVE / Tools.pm
index 2cd47333edf1dc043568ac0d5bcb0be782ca2828..1fe7f4c8ae12e49515d3d27072980f9587cc55d8 100644 (file)
@@ -341,7 +341,7 @@ sub run_command {
     my $timeout;
     my $oldtimeout;
     my $pid;
-    my $exitcode;
+    my $exitcode = -1;
 
     my $outfunc;
     my $errfunc;
@@ -977,6 +977,8 @@ sub decode_text {
     return Encode::decode("utf8", uri_unescape($data));
 }
 
+# depreciated - do not use!
+# we now decode all parameters by default
 sub decode_utf8_parameters {
     my ($param) = @_;