Skip to content

Commit

Permalink
mention that XML generated by Mojo::DOM can be encoded
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 4, 2012
1 parent d0aca8f commit b8eaa61
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,5 +1,6 @@

3.03 2012-07-04
- Improved documentation.
- Improved tests.
- Fixed small namespace detection bug in Mojo::DOM.

Expand Down
6 changes: 4 additions & 2 deletions lib/Mojo/DOM.pm
Expand Up @@ -547,7 +547,8 @@ similar to C<find>.
my $xml = $dom->content_xml;
Render content of this element to XML.
Render content of this element to XML. Note that the XML will be encoded if a
C<charset> has been defined.
# "<b>test</b>"
$dom->parse('<div><b>test</b></div>')->div->content_xml;
Expand Down Expand Up @@ -686,7 +687,8 @@ is enabled by default.
my $xml = $dom->to_xml;
Render this element and its content to XML.
Render this element and its content to XML. Note that the XML will be encoded
if a C<charset> has been defined.
# "<b>test</b>"
$dom->parse('<div><b>test</b></div>')->div->b->to_xml;
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Util.pm
Expand Up @@ -368,7 +368,7 @@ sub _hmac {
my $hash = $sha ? sub { sha1(@_) } : sub { md5(@_) };

# Secret
$secret = $secret ? "$secret" : 'Very unsecure!';
$secret = $secret ? "$secret" : 'Very insecure!';
$secret = $hash->($secret) if length $secret > 64;

# HMAC
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious.pm
Expand Up @@ -23,7 +23,7 @@ has routes => sub { Mojolicious::Routes->new };
has secret => sub {
my $self = shift;

# Warn developers about unsecure default
# Warn developers about insecure default
$self->log->debug('Your secret passphrase needs to be changed!!!');

# Default to application name
Expand Down Expand Up @@ -332,7 +332,7 @@ startup method to define the url endpoints for your application.
A secret passphrase used for signed cookies and the like, defaults to the
application name which is not very secure, so you should change it!!! As long
as you are using the unsecure default there will be debug messages in the log
as you are using the insecure default there will be debug messages in the log
file reminding you to change your passphrase.
=head2 C<sessions>
Expand Down

0 comments on commit b8eaa61

Please sign in to comment.