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 5bafae0 commit af66c89Copy full SHA for af66c89
lib/pause_2017/PAUSE/Web/Plugin/RenderYAML.pm
@@ -13,6 +13,7 @@ sub register {
13
my $dump = YAML::Syck::Dump($data);
14
my $edump = Encode::encode_utf8($dump);
15
my $action = $c->req->param('ACTION') || 'pause';
16
+ $action =~ tr/a-z0-9_//cd;
17
$c->res->headers->content_disposition("attachment; filename=$action.yaml");
18
$c->res->headers->content_type('application/yaml');
19
$c->stash(format => "text");
0 commit comments