X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FInterface%2FWeb.pm;h=ace24e4f7e300e49194273aef2d38a7708dd47b2;hb=945580551410383965a86beadb095a760fa4ce5b;hp=3e0b8b3492628ef821ab59ceb6e281b6bd60d799;hpb=529764ae84fd653e2807e29247faaccdfcb53d33;p=freeside.git diff --git a/rt/lib/RT/Interface/Web.pm b/rt/lib/RT/Interface/Web.pm index 3e0b8b349..ace24e4f7 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); } @@ -2317,7 +2321,6 @@ sub _parse_saved_search { return ( _load_container_object( $obj_type, $obj_id ), $search_id ); } -package RT::Interface::Web; RT::Base->_ImportOverlays(); 1;