From 099ab661d00aaa29eb3ff00749fd851cdd15d4b5 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Fri, 22 Dec 2017 18:20:10 -0500 Subject: no bug - support Devel::NYTProf --- Bugzilla/Extension.pm | 2 +- Bugzilla/Template/PreloadProvider.pm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Extension.pm b/Bugzilla/Extension.pm index baf2286e1..a41ac9326 100644 --- a/Bugzilla/Extension.pm +++ b/Bugzilla/Extension.pm @@ -46,7 +46,7 @@ sub INC_HOOK { return 1; } else { - $_ = qq{# line 0 "$real_file"\n}; + $_ = qq{# line 1 "$real_file"\n}; $first = 0; return 1; } diff --git a/Bugzilla/Template/PreloadProvider.pm b/Bugzilla/Template/PreloadProvider.pm index 2588b1a79..bddabfa2e 100644 --- a/Bugzilla/Template/PreloadProvider.pm +++ b/Bugzilla/Template/PreloadProvider.pm @@ -43,6 +43,7 @@ sub _init { } trick_taint($name); my $data = { + path => $name, name => $key, text => do { open my $fh, '<:utf8', $name or die "cannot open $name"; -- cgit v1.2.3-24-g4f1b