aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/search.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-07-31 15:54:25 -0400
committerJoey Hess <joey@kitenet.net>2010-07-31 15:54:25 -0400
commitfee00fdb7a4ebb52e90f739cca33def70497620e (patch)
tree453965713832b4a1cb23c4e4d0c0189b9c251a34 /IkiWiki/Plugin/search.pm
parentd1a5d00156da7bf6f25f8e28969c280738d3281c (diff)
downloadikiwiki-fee00fdb7a4ebb52e90f739cca33def70497620e.tar
ikiwiki-fee00fdb7a4ebb52e90f739cca33def70497620e.tar.gz
Use Digest::SHA built into perl rather than external Digest::SHA1 to simplify dependencies. Closes: #591040
Diffstat (limited to 'IkiWiki/Plugin/search.pm')
-rw-r--r--IkiWiki/Plugin/search.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/search.pm b/IkiWiki/Plugin/search.pm
index 1cf762fce..8fb9dff0c 100644
--- a/IkiWiki/Plugin/search.pm
+++ b/IkiWiki/Plugin/search.pm
@@ -190,15 +190,15 @@ sub pageterm ($) {
# 240 is the number used by omindex to decide when to hash an
# overlong term. This does not use a compatible hash method though.
if (length $page > 240) {
- eval q{use Digest::SHA1};
+ eval q{use Digest::SHA};
if ($@) {
- debug("search: ".sprintf(gettext("need Digest::SHA1 to index %s"), $page)) if $@;
+ debug("search: ".sprintf(gettext("need Digest::SHA to index %s"), $page)) if $@;
return undef;
}
# Note no colon, therefore it's guaranteed to not overlap
# with a page with the same name as the hash..
- return "U".lc(Digest::SHA1::sha1_hex($page));
+ return "U".lc(Digest::SHA::sha1_hex($page));
}
else {
return "U:".$page;