projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GDPDU locales
[kivitendo-erp.git]
/
SL
/
Auth
/
SessionValue.pm
diff --git
a/SL/Auth/SessionValue.pm
b/SL/Auth/SessionValue.pm
index
6bf65b9
..
cfaa624
100644
(file)
--- a/
SL/Auth/SessionValue.pm
+++ b/
SL/Auth/SessionValue.pm
@@
-2,6
+2,10
@@
package SL::Auth::SessionValue;
use strict;
use strict;
+# Classes that overload stringification must be known before
+# YAML::Load() is called.
+use SL::Locale::String ();
+
use Scalar::Util qw(weaken);
use YAML;
use Scalar::Util qw(weaken);
use YAML;
@@
-33,6
+37,8
@@
sub get {
sub get_dumped {
my ($self) = @_;
sub get_dumped {
my ($self) = @_;
+ no warnings 'once';
+ local $YAML::Stringify = 1;
return YAML::Dump($self->get);
}
return YAML::Dump($self->get);
}