Skip to content

Commit

Permalink
http: forbid draw/expand of TLeaf objects in THttpServer
Browse files Browse the repository at this point in the history
Signed-off-by: Bertrand Bellenot <[email protected]>
  • Loading branch information
linev authored and bellenot committed Aug 30, 2016
1 parent 718b6c3 commit 61373da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions net/http/src/TRootSniffer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,12 @@ void TRootSniffer::ScanObjectProperties(TRootSnifferScanRec &rec, TObject *obj)
{
TClass* cl = obj ? obj->IsA() : 0;

if (cl && cl->InheritsFrom(TLeaf::Class())) {
rec.SetField("_more", "false");
rec.SetField("_can_draw", "false");
return;
}

const char* pos = strstr(cl ? cl->GetTitle() : "", "*SNIFF*");
if (pos==0) return;

Expand Down

0 comments on commit 61373da

Please sign in to comment.