Skip to content

Commit 0433163

Browse files
committed
[http] cleanup draw option in image production
Avoid special characters as draw arguments
1 parent d4c1aa2 commit 0433163

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

net/httpsniff/src/TRootSnifferFull.cxx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ Bool_t TRootSnifferFull::ProduceImage(Int_t kind, const std::string &path, const
416416
if (gDebug > 1)
417417
Info("TRootSniffer", "Crate IMAGE from object %s", obj->GetName());
418418

419-
Int_t width(300), height(200);
419+
Int_t width = 300, height = 200;
420420
TString drawopt;
421421

422422
if (!options.empty()) {
@@ -429,9 +429,7 @@ Bool_t TRootSnifferFull::ProduceImage(Int_t kind, const std::string &path, const
429429
Int_t h = url.GetIntValueFromOptions("h");
430430
if (h > 10)
431431
height = h;
432-
const char *opt = url.GetValueFromOptions("opt");
433-
if (opt)
434-
drawopt = opt;
432+
drawopt = DecodeUrlOptionValue(url.GetValueFromOptions("opt"), kTRUE);
435433
}
436434

437435
Bool_t isbatch = gROOT->IsBatch();

0 commit comments

Comments
 (0)