Skip to content

Commit

Permalink
Blargh... quotes! moar quotes! moar!
Browse files Browse the repository at this point in the history
  • Loading branch information
espenfjo committed Oct 30, 2013
1 parent 22e7158 commit 88096a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/FjoSpidie/Controller/Job.pm
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ sub run {

my @command = ( $command, "--url", "'$url'", "--uuid", $uuid );
if ($referer) {
push( @command, "'$referer'" );
push( @command, "--referer" );
push( @command, "\\\"'$referer'\\\"" );
}
if ($ua) {
push( @command, "'$ua'" );
push( @command, "--useragent" );
push( @command, "\\\"'$ua'\\\"" );
}
eval {
local $SIG{ALRM} = sub { die "timeout\n" };
Expand Down

0 comments on commit 88096a5

Please sign in to comment.