From 72e6a203547667b442c876f9cbfa9cce72e8f814 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 1 Apr 2014 13:53:47 +0800 Subject: Bug 774198: "Undefined subroutine Fh::slice" when logging in with browserid while attaching a file --- .../template/en/default/hook/global/header-additional_header.html.tmpl | 1 + 1 file changed, 1 insertion(+) (limited to 'extensions/Persona/template/en') diff --git a/extensions/Persona/template/en/default/hook/global/header-additional_header.html.tmpl b/extensions/Persona/template/en/default/hook/global/header-additional_header.html.tmpl index f6d68a5af..786010a34 100644 --- a/extensions/Persona/template/en/default/hook/global/header-additional_header.html.tmpl +++ b/extensions/Persona/template/en/default/hook/global/header-additional_header.html.tmpl @@ -54,6 +54,7 @@ function persona_onlogin(assertion) { [% FOREACH field = cgi.param() %] [% NEXT IF field.search("^(Bugzilla_(login|password|restrictlogin)|token|persona_assertion)$") %] + [% NEXT UNLESS cgi.param(field).can('slice') %] [% FOREACH mvalue = cgi.param(field).slice(0) %] createHidden('[% field FILTER js %]', '[% mvalue FILTER html_linebreak FILTER js %]', form); [% END %] -- cgit v1.2.3-24-g4f1b