Dancer
view release on metacpan or search on metacpan
- BooK)
- GH #856: Don't export non-existing subroutine (mokko).
- GH #874: Reduce dependence on %ENV for internal code (Kent Fredric).
- GH #875: Don't expect specific order in cookies (Yanick Champoux).
- Remove 'exception' object from message being passed to serializers.
(Rik Brown)
- Added .travis.yml to MANIFEST.SKIP so t/manifest.t passes (Kaitlyn
Parkhurst).
- GH #887, GH #890: keyword 'global_warnings' added to replace
'import_warnings' (Kaitlyn Parkhurst).
- GH #892: add 'private_key' to the list of potentially sensitive keys
(Tom Heady).
[DOCUMENTATION]
- GH #847: Fix typo (John Wittkoski).
- GH #865: Correct 'before' hook documentation (David Precious, Maurice).
- GH #860, GH #844, GH #760: Misleading plack middleware documentation.
(Paul Fenwick)
- GH #862: Fix heading level for strict_config entry in Dancer::Config.
(Stefan Hornburg - Racke)
- GH #863: Correct example apache config (John Wittkoski).
lib/Dancer/Error.pm view on Meta::CPAN
if (!$hash || ref $hash ne 'HASH') {
carp "_censor given incorrect input: $hash";
return;
}
my $censored = 0;
for my $key (keys %$hash) {
if (ref $hash->{$key} eq 'HASH') {
$censored += _censor( $hash->{$key}, $recursecount );
}
elsif ($key =~ /(pass|card?num|pan|cvv2?|ccv|secret|private_key|cookie_key)/i) {
$hash->{$key} = "Hidden (looks potentially sensitive)";
$censored++;
}
}
return $censored;
}
# Replaces the entities that are illegal in (X)HTML.
sub _html_encode {
( run in 0.245 second using v1.01-cache-2.11-cpan-a5abf4f5562 )