diff options
author | ivan <ivan> | 2011-07-15 20:28:17 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-07-15 20:28:17 +0000 |
commit | f07090d1447b1ac9b9796b4a19a37b76f57fa035 (patch) | |
tree | 5a62e7addf7949a58d58ebdb72b992ce6519083d /rt/lib/RT/Interface/Web.pm | |
parent | d04a3f3b11ab9e1d32ffb328bf994e8f21fc51a1 (diff) |
fix 403 errors pulling up RTx-Statistics charts, RT#13546
Diffstat (limited to 'rt/lib/RT/Interface/Web.pm')
-rw-r--r-- | rt/lib/RT/Interface/Web.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rt/lib/RT/Interface/Web.pm b/rt/lib/RT/Interface/Web.pm index 822a9b5fa..e19345929 100644 --- a/rt/lib/RT/Interface/Web.pm +++ b/rt/lib/RT/Interface/Web.pm @@ -438,7 +438,11 @@ sub MaybeRejectPrivateComponentRequest { autohandler | # requesting this directly is suspicious l ) # loc component ( $ | / ) # trailing slash or end of path - }xi) { + }xi + && $path !~ m{ /RTx/Statistics/\w+/Elements/Chart }xi + ) + { + warn "rejecting private component $path\n"; $m->abort(403); } @@ -2300,7 +2304,6 @@ sub _parse_saved_search { return ( _load_container_object( $obj_type, $obj_id ), $search_id ); } -package RT::Interface::Web; RT::Base->_ImportOverlays(); 1; |