projects
/
catagits/Catalyst-Runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
ffe72ea
)
weaken evil hack
5.90113
John Napiorkowski [Thu, 15 Dec 2016 20:03:50 +0000 (14:03 -0600)]
lib/Catalyst.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Catalyst.pm
b/lib/Catalyst.pm
index
503d2ec
..
ea96adc
100644
(file)
--- a/
lib/Catalyst.pm
+++ b/
lib/Catalyst.pm
@@
-51,6
+51,7
@@
use Catalyst::Middleware::Stash;
use Plack::Util;
use Class::Load 'load_class';
use Encode 2.21 'decode_utf8', 'encode_utf8';
+use Scalar::Util;
BEGIN { require 5.008003; }
@@
-2491,6
+2492,7
@@
sub prepare {
$c->log_request;
$c->{stash} = $c->stash;
+ Scalar::Util::weaken($c->{stash});
return $c;
}