search: Fix encoding bug in calculation of maximum term size.
parent
108d118dc3
commit
4af7b2c14d
|
@ -192,7 +192,8 @@ 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 Encode};
|
||||
if (length encode_utf8($page) > 240) {
|
||||
eval q{use Digest::SHA};
|
||||
if ($@) {
|
||||
debug("search: ".sprintf(gettext("need Digest::SHA to index %s"), $page)) if $@;
|
||||
|
|
|
@ -20,6 +20,7 @@ ikiwiki (3.20110716) UNRELEASED; urgency=low
|
|||
* Update to jquery 1.6.2, and jquery-ui 1.8.14.
|
||||
* Use lockf rather than flock when taking the cgilock, for better
|
||||
portability.
|
||||
* search: Fix encoding bug in calculation of maximum term size.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Tue, 19 Jul 2011 11:22:52 -0400
|
||||
|
||||
|
|
Loading…
Reference in New Issue