projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fec244e
)
switch from obsolete Digest::SHA1 to Digest::SHA, fix calendar prefs
author
Ivan Kohler
<ivan@freeside.biz>
Fri, 8 Jun 2012 00:30:31 +0000
(17:30 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Fri, 8 Jun 2012 00:30:31 +0000
(17:30 -0700)
rt/share/html/Prefs/Calendar.html
patch
|
blob
|
history
diff --git
a/rt/share/html/Prefs/Calendar.html
b/rt/share/html/Prefs/Calendar.html
index
b508d10
..
57eb007
100644
(file)
--- 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>
</&>
<%INIT>
-use Digest::SHA
1
;
+use Digest::SHA
'sha1_base64'
;
use RT::SavedSearches;
my $title = loc("Calendar Prefs");
use RT::SavedSearches;
my $title = loc("Calendar Prefs");
@@
-106,12
+106,12
@@
my $object;
if ($HiddenField && $HiddenField eq 'Private') {
$object = $session{CurrentUser}->UserObj;
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) {
$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');
}
} elsif (defined $ResetURL) {
my @args = $object->DeleteAttribute('ICalURL');
}