aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-06-07 06:00:33 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2017-06-07 06:37:15 +0200
commit1ec8274103af9f67174a3055c095d76a0b4cc3e4 (patch)
tree8ebcf363b25b343cf73a8e7f68eba20644fa3eb3
parentb09c0c23eec6bce61bd7ee69a0ac5a7fb6087243 (diff)
downloadacme-tinier-1ec8274103af9f67174a3055c095d76a0b4cc3e4.tar.gz
acme-tinier-1ec8274103af9f67174a3055c095d76a0b4cc3e4.tar.xz
acme-tinier-1ec8274103af9f67174a3055c095d76a0b4cc3e4.zip
Fix regex to match original behaviour
-rwxr-xr-xacme-tinier.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/acme-tinier.pl b/acme-tinier.pl
index 0ed35e2..266e4ac 100755
--- a/acme-tinier.pl
+++ b/acme-tinier.pl
@@ -134,7 +134,7 @@ for my $domain (@domains) {
my ($challenge) = grep { $_->{type} eq 'http-01' }
@{$json->decode($result)->{challenges}};
- my $token = $challenge->{token} =~ s/[^A-Za-z0-9_-]/_/r;
+ my $token = $challenge->{token} =~ s/[^A-Za-z0-9_-]/_/gr;
my $key_auth = "$token.$thumbprint";
my $known_path = "$acme_dir/$token";