fix #4697, adds backslashes quotation for exec (#4699)

Signed-off-by: Sergio E. Nemirowski <sergio@outerface.net>
This commit is contained in:
sergio 2021-12-06 11:53:50 +03:00 committed by GitHub
parent 729452448b
commit 70f23caa9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -482,7 +482,8 @@ EOT
# double quote which is NOT preceded by a backslash (\).
#
# Therefore, we escape all double quotes (") by replacing them with \"
$exec =~ s/"/\\"/g;
$exec =~ s/\\"/\\\\\\"/g;
$exec =~ s/([^\\])"/$1\\"/g;
if (exists($app->{StartupNotify}) && !$app->{StartupNotify}) {
$nosn = '--no-startup-id';