From 11f68780d3ccfb50396a4f9736957288d466cd04 Mon Sep 17 00:00:00 2001 From: Kent Fredric Date: Fri, 24 Feb 2012 09:07:50 +1300 Subject: [scripts] Be less vulnerable to weird quotes in abstract --- scripts/gen_ebuild.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/gen_ebuild.pl') diff --git a/scripts/gen_ebuild.pl b/scripts/gen_ebuild.pl index 46ea8f1b5..8d83bc50d 100755 --- a/scripts/gen_ebuild.pl +++ b/scripts/gen_ebuild.pl @@ -135,7 +135,9 @@ if ( not defined $release_info->{abstract} ) { warn "Missing an ABSTRACT"; } else { - $fh->say( 'DESCRIPTION=\'' . $release_info->{abstract} . '\'' ); + my $abstract = $release_info->{abstract}; + $abstract =~ s/'/'\\''/g; # ' => '\'' + $fh->say( 'DESCRIPTION=\'' . $abstract . '\'' ); } my $lics = []; -- cgit v1.2.3-65-gdbad