From 8d5dd5786873437f9fa840679cd94172e8ca30f1 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 5 Oct 2006 02:47:28 +0000 Subject: Bug 355230: [PostgreSQL] Crash if sharer_id is not an integer - Patch by Frédéric Buclin r=wurblzap a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/global/user-error.html.tmpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'template') diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index 58eaf5893..3fdc24d4d 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -966,7 +966,7 @@ [% docslinks = {'query.html' => "Searching for $terms.bugs", 'list.html' => "$terms.Bug lists"} %] The search named [% queryname FILTER html %] - [% IF sharer_id %] + [% IF sharer_id && sharer_id != user.id %] has not been made visible to you. [% ELSE %] does not exist. @@ -1521,8 +1521,10 @@ # search from any error call location. %] [% namedcmd = Bugzilla.cgi.param("namedcmd") %] +[% sharer_id = Bugzilla.cgi.param("sharer_id") %] [% IF namedcmd AND error != "missing_query" - AND error != "saved_search_used_by_whines" %] + AND error != "saved_search_used_by_whines" + AND !sharer_id %]

Alternatively, you can