From: John Napiorkowski Date: Thu, 15 Dec 2016 20:03:50 +0000 (-0600) Subject: weaken evil hack X-Git-Tag: 5.90113^0 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=d86c0bd4acc04426e8fb3014772b9d469545cbb7;hp=ffe72ea67cb3a51d2e0e515079ede64e88699f12 weaken evil hack --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 503d2ec..ea96adc 100644 --- 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; }