aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/cgp_rspamd.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/cgp_rspamd.pl b/utils/cgp_rspamd.pl
index 90fa43f90..f387dd877 100644
--- a/utils/cgp_rspamd.pl
+++ b/utils/cgp_rspamd.pl
@@ -41,9 +41,10 @@ $| = 1;
sub cgp_string {
my ($in) = @_;
- $in =~ s/\"/\\"/;
- $in =~ s/\n/\\n/;
- $in =~ s/\r/\\r/;
+ $in =~ s/\"/\\"/g;
+ $in =~ s/\n/\\n/gms;
+ $in =~ s/\r/\\r/mgs;
+ $in =~ s/\t/ /g;
return "\"$in\"";
}