summaryrefslogtreecommitdiff
path: root/rt/share/html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-06-07 17:30:31 -0700
committerIvan Kohler <ivan@freeside.biz>2012-06-07 17:30:31 -0700
commit08d77ffa29ac8188b977730c5a01eef22cf5f5d6 (patch)
treeceb45dda4c47c8a2a8e35d4c113ffab6c3c7947b /rt/share/html
parentfec244eb00508517cd3313f6cf55973c2d2e99cf (diff)
switch from obsolete Digest::SHA1 to Digest::SHA, fix calendar prefs
Diffstat (limited to 'rt/share/html')
-rw-r--r--rt/share/html/Prefs/Calendar.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/rt/share/html/Prefs/Calendar.html b/rt/share/html/Prefs/Calendar.html
index b508d103b..57eb007f6 100644
--- a/rt/share/html/Prefs/Calendar.html
+++ b/rt/share/html/Prefs/Calendar.html
@@ -92,7 +92,7 @@ href="<%$RT::WebPath . '/Search/Build.html'%>">the Query Builder</a>
</&>
<%INIT>
-use Digest::SHA1;
+use Digest::SHA 'sha1_base64';
use RT::SavedSearches;
my $title = loc("Calendar Prefs");
@@ -106,12 +106,12 @@ my $object;
if ($HiddenField && $HiddenField eq 'Private') {
$object = $session{CurrentUser}->UserObj;
-} elsif ($AllowSearch and $HiddenField my ($SearchId) = $HiddenField =~ m/SavedSearch\-(\d+)/) {
+} elsif ($AllowSearch and $HiddenField and my ($SearchId) = $HiddenField =~ m/SavedSearch\-(\d+)/) {
$object = $session{CurrentUser}->Attributes->WithId($SearchId);
}
if (defined $ChangeURL) {
- my @args = $object->SetAttribute(Name => 'ICalURL', Content => Digest::SHA1::sha1_base64(time));
+ my @args = $object->SetAttribute(Name => 'ICalURL', Content => sha1_base64(time));
} elsif (defined $ResetURL) {
my @args = $object->DeleteAttribute('ICalURL');
}