Skip to content

Commit

Permalink
remove deprecated xss_escape function from Mojo::Util
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 21, 2016
1 parent ebed13f commit c7cea5f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,5 +1,6 @@

6.59 2016-04-21
- Removed deprecated xss_escape function from Mojo::Util.
- Improved HTML Living Standard compliance of Mojo::DOM::HTML.
- Improved Mojo::Server::Daemon to log when a connection has been closed
prematurely.
Expand Down
10 changes: 0 additions & 10 deletions lib/Mojo/Util.pm
Expand Up @@ -61,9 +61,6 @@ our @EXPORT_OK = (
qw(unquote url_escape url_unescape xml_escape xor_encode)
);

# DEPRECATED!
push @EXPORT_OK, 'xss_escape';

# Aliases
monkey_patch(__PACKAGE__, 'b64_decode', \&decode_base64);
monkey_patch(__PACKAGE__, 'b64_encode', \&encode_base64);
Expand Down Expand Up @@ -348,13 +345,6 @@ sub xor_encode {
return $output .= $buffer ^ substr($key, 0, length $buffer, '');
}

# DEPRECATED!
sub xss_escape {
deprecated
'Mojo::Util::xss_escape is DEPRECATED in favor of Mojo::Util::xml_escape';
xml_escape(@_);
}

sub _adapt {
my ($delta, $numpoints, $firsttime) = @_;
use integer;
Expand Down
3 changes: 1 addition & 2 deletions t/pod_coverage.t
Expand Up @@ -12,8 +12,7 @@ my %RULES = (
'Mojo::IOLoop::Server' => {also_private => ['multi_accept']},
'Mojo::Server::Daemon' => {also_private => ['multi_accept']},
'Mojo::Server::Morbo' => {also_private => ['check']},
'Mojo::Template' => {also_private => ['build', 'compile', 'interpret']},
'Mojo::Util' => {also_private => ['xss_escape']}
'Mojo::Template' => {also_private => ['build', 'compile', 'interpret']}
);
pod_coverage_ok($_, $RULES{$_} || {}) for all_modules();

Expand Down

0 comments on commit c7cea5f

Please sign in to comment.