Skip to content
Snippets Groups Projects
Unverified Commit ee8cf78f authored by David Beniamine's avatar David Beniamine
Browse files

removing bad utf8 encode

parent 16559186
No related branches found
No related tags found
No related merge requests found
......@@ -244,9 +244,7 @@ sub format_log{
my %args = @_;
my $date = strftime("%F %X", localtime());
my $string = "$date\t$args{level}\t$args{message}\n";
if( not utf8::is_utf8($string)){
utf8::encode($string);
}
return $string;
}
......
......@@ -31,7 +31,7 @@
$args = "--forget ".escapeshellarg($uuid);
break;
}
echo utf8_encode($message);
echo $message;
if (strcmp($args, "")){
//echo "<p>execution de '$cmd $args'</p>";
shell_exec("$cmd $args");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment