diff options
Diffstat (limited to 'relogin.cgi')
-rwxr-xr-x | relogin.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/relogin.cgi b/relogin.cgi index 0e04b1bdc..028f4ddb1 100755 --- a/relogin.cgi +++ b/relogin.cgi @@ -144,7 +144,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'); |