Checking in changes prior to tagging of version 0.24. Changelog diff is:
[catagits/Catalyst-Plugin-Session.git] / lib / Catalyst / Plugin / Session.pm
index 4fdb4f2..8e3a2da 100644 (file)
@@ -13,7 +13,7 @@ use Carp;
 
 use namespace::clean -except => 'meta';
 
-our $VERSION = '0.22';
+our $VERSION = '0.24';
 
 my @session_data_accessors; # used in delete_session
 
@@ -463,12 +463,12 @@ sub initialize_session_data {
 
             (
                 $c->config->{session}{verify_address}
-                ? ( __address => $c->request->address )
+                ? ( __address => $c->request->address||'' )
                 : ()
             ),
             (
                 $c->config->{session}{verify_user_agent}
-                ? ( __user_agent => $c->request->user_agent )
+                ? ( __user_agent => $c->request->user_agent||'' )
                 : ()
             ),
         }
@@ -974,7 +974,7 @@ This value is only populated if C<verify_address> is true in the configuration.
 
 =item __user_agent
 
-The value of C<< $c->request->user_agent>> at the time the session was created.
+The value of C<< $c->request->user_agent >> at the time the session was created.
 This value is only populated if C<verify_user_agent> is true in the configuration.
 
 =back