diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev
index 0fa00df4d86..2d421d50a3c 100644
--- a/mozilla/webtools/bugzilla/.bzrrev
+++ b/mozilla/webtools/bugzilla/.bzrrev
@@ -1 +1 @@
-7667
\ No newline at end of file
+7668
\ No newline at end of file
diff --git a/mozilla/webtools/bugzilla/extensions/Example/template/en/default/hook/admin/sanitycheck/messages-statuses.html.tmpl b/mozilla/webtools/bugzilla/extensions/Example/template/en/default/hook/admin/sanitycheck/messages-statuses.html.tmpl
index 8a825e57ce3..639752ed598 100644
--- a/mozilla/webtools/bugzilla/extensions/Example/template/en/default/hook/admin/sanitycheck/messages-statuses.html.tmpl
+++ b/mozilla/webtools/bugzilla/extensions/Example/template/en/default/hook/admin/sanitycheck/messages-statuses.html.tmpl
@@ -27,7 +27,8 @@
Edit this user.
[% END %]
[% ELSIF san_tag == "example_check_au_user_prompt" %]
- Fix these users.
+ Fix these users.
[% ELSIF san_tag == "example_repair_au_user_start" %]
EXAMPLE PLUGIN - OK, would now make users Australian.
[% ELSIF san_tag == "example_repair_au_user_end" %]
diff --git a/mozilla/webtools/bugzilla/extensions/Voting/template/en/default/hook/admin/sanitycheck/messages-statuses.html.tmpl b/mozilla/webtools/bugzilla/extensions/Voting/template/en/default/hook/admin/sanitycheck/messages-statuses.html.tmpl
index afb81d34c49..bbf0350a19b 100644
--- a/mozilla/webtools/bugzilla/extensions/Voting/template/en/default/hook/admin/sanitycheck/messages-statuses.html.tmpl
+++ b/mozilla/webtools/bugzilla/extensions/Voting/template/en/default/hook/admin/sanitycheck/messages-statuses.html.tmpl
@@ -19,7 +19,8 @@
#%]
[% IF san_tag == "voting_cache_rebuild_fix" %]
- Click here to
+ Click here to
rebuild the vote cache
[% ELSIF san_tag == "voting_cache_alert" %]
diff --git a/mozilla/webtools/bugzilla/sanitycheck.cgi b/mozilla/webtools/bugzilla/sanitycheck.cgi
index a4f9832b0b0..6bf113b2488 100755
--- a/mozilla/webtools/bugzilla/sanitycheck.cgi
+++ b/mozilla/webtools/bugzilla/sanitycheck.cgi
@@ -35,6 +35,7 @@ use Bugzilla::Error;
use Bugzilla::Hook;
use Bugzilla::Util;
use Bugzilla::Status;
+use Bugzilla::Token;
###########################################################################
# General subs
@@ -79,6 +80,15 @@ if (Bugzilla->usage_mode == USAGE_MODE_CMDLINE) {
}
else {
$template = Bugzilla->template;
+
+ # Only check the token if we are running this script from the
+ # web browser and a parameter is passed to the script.
+ # XXX - Maybe these two parameters should be deleted once logged in?
+ $cgi->delete('GoAheadAndLogIn', 'Bugzilla_restrictlogin');
+ if (scalar($cgi->param())) {
+ my $token = $cgi->param('token');
+ check_hash_token($token, ['sanitycheck']);
+ }
}
my $vars = {};
diff --git a/mozilla/webtools/bugzilla/template/en/default/admin/sanitycheck/messages.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/admin/sanitycheck/messages.html.tmpl
index af0f9e57214..88264d820f9 100644
--- a/mozilla/webtools/bugzilla/template/en/default/admin/sanitycheck/messages.html.tmpl
+++ b/mozilla/webtools/bugzilla/template/en/default/admin/sanitycheck/messages.html.tmpl
@@ -34,7 +34,8 @@
[% errortext FILTER html %]: [% INCLUDE bug_list badbugs = badbugs %]
[% ELSIF san_tag == "bug_check_repair" %]
- [% text FILTER html %].
+ [% text FILTER html %].
[% ELSIF san_tag == "bug_check_creation_date" %]
Checking for [% terms.bugs %] with no creation date (which makes them invisible).
@@ -136,11 +137,13 @@
[% END %]
[% ELSIF san_tag == "cross_check_attachment_has_references" %]
- Remove
+ Remove
invalid references to non existent attachments.
[% ELSIF san_tag == "cross_check_bug_has_references" %]
- Remove
+ Remove
invalid references to non existent [% terms.bugs %].
[% ELSIF san_tag == "double_cross_check_to" %]
@@ -186,7 +189,8 @@
[%+ PROCESS bug_link bug_id = bug_id %].
[% ELSIF san_tag == "flag_fix" %]
- Click
+ Click
here to delete invalid flags
[% ELSIF san_tag == "group_control_map_entries_creation" %]
@@ -250,7 +254,8 @@
half an hour: [% INCLUDE bug_list badbugs = badbugs %]
[% ELSIF san_tag == "unsent_bugmail_fix" %]
- Send these mails.
+ Send these mails.
[% ELSIF san_tag == "whines_obsolete_target_deletion_start" %]
OK, now removing non-existent users/groups from whines.
@@ -268,7 +273,8 @@
[% END %]
[% ELSIF san_tag == "whines_obsolete_target_fix" %]
- Click here to
+ Click here to
remove old users/groups
[% ELSE %]