diff options
author | 2012-02-23 21:41:47 +0100 | |
---|---|---|
committer | 2012-02-23 21:41:47 +0100 | |
commit | 37a663a5b9827c6cd4ed2c26a61564ea98d078b4 (patch) | |
tree | 22071cc4a70210a1aa29a701c37b22293cfae283 /relogin.cgi | |
parent | Bump to 4.0.4 (diff) | |
download | bugzilla-37a663a5b9827c6cd4ed2c26a61564ea98d078b4.tar.gz bugzilla-37a663a5b9827c6cd4ed2c26a61564ea98d078b4.tar.bz2 bugzilla-37a663a5b9827c6cd4ed2c26a61564ea98d078b4.zip |
Update to 4.2.
Diffstat (limited to 'relogin.cgi')
-rwxr-xr-x | relogin.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/relogin.cgi b/relogin.cgi index d31c80993..07796f9f6 100755 --- a/relogin.cgi +++ b/relogin.cgi @@ -145,7 +145,7 @@ elsif ($action eq 'begin-sudo') { # If we have a reason passed in, keep it under 200 characters my $reason = $cgi->param('reason') || ''; - $reason = substr($reason, $[, 200); + $reason = substr($reason, 0, 200); # Calculate the session expiry time (T + 6 hours) my $time_string = time2str('%a, %d-%b-%Y %T %Z', time + MAX_SUDO_TOKEN_AGE, 'GMT'); @@ -164,7 +164,7 @@ elsif ($action eq 'begin-sudo') { # Go ahead and send out the message now my $message; - my $mail_template = Bugzilla->template_inner($target_user->settings->{'lang'}->{'value'}); + my $mail_template = Bugzilla->template_inner($target_user->setting('lang')); $mail_template->process('email/sudo.txt.tmpl', { reason => $reason }, \$message); MessageToMTA($message); |