We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f67aa4 commit 8129711Copy full SHA for 8129711
lib/EvalbotExecuter.pm
@@ -80,8 +80,8 @@ sub run {
80
my ($program, $executer) = @_;
81
if ($program =~ /^https:\/\/gist\.github\.com\/\d+$/) {
82
my $page = `curl -s $program`;
83
- $page =~ /href="(\/raw[^"]+)"/;
84
- if ($1) { $program = `curl -s https://gist.github.com$1` } else { return 'gist not found' };
+ $page =~ /href="\/raw([^"]+)"/;
+ if ($1) { $program = `curl -s https://raw.github.com/gist$1` } else { return 'gist not found' };
85
}
86
my $response = _fork_and_eval($program, $executer);
87
if (!length $response){
0 commit comments