Skip to content
Snippets Groups Projects
Commit 43de5cf7 authored by Alex Xu's avatar Alex Xu Committed by Sébastien Helleu
Browse files

launcher.pl 0.7: properly fix escaping of "signal_data"

parent 7cf9fabb
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -22,6 +22,8 @@
#
# History:
#
# 2017-09-07, Alex Xu (Hello71) <alex_y_xu@yahoo.ca>:
# version 0.7: properly fix escaping of "signal_data"
# 2017-08-29, Alex Xu (Hello71) <alex_y_xu@yahoo.ca>:
# version 0.6: fix escaping of "signal_data"
# 2011-02-13, Sebastien Helleu <flashcode@flashtux.org>:
Loading
Loading
@@ -38,7 +40,7 @@
 
use strict;
 
my $version = "0.6";
my $version = "0.7";
my $command_suffix = " &";
 
weechat::register("launcher", "FlashCode <flashcode\@flashtux.org>", $version, "GPL3",
Loading
Loading
@@ -111,7 +113,7 @@ sub signal
my $command = weechat::config_get_plugin("signal.$_[1]");
if ($command ne "")
{
$signal_data =~ s/'/'\''/g;
$signal_data =~ s/'/'\\''/g;
$command =~ s/\$signal_data/'$signal_data'/g;
system($command.$command_suffix);
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment