projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b7d90d
)
don't loop forever
author
Joey Hess
<joey@kodama.kitenet.net>
Wed, 4 Jun 2008 03:55:00 +0000
(23:55 -0400)
committer
Joey Hess
<joey@kodama.kitenet.net>
Wed, 4 Jun 2008 03:55:00 +0000
(23:55 -0400)
IkiWiki/Plugin/search.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/search.pm
b/IkiWiki/Plugin/search.pm
index 0d4a8f552abb9bf7f38d7e1112e1278308df1353..dd44855bd067185f5fdbe9ecd2d380e45bed8cc2 100644
(file)
--- a/
IkiWiki/Plugin/search.pm
+++ b/
IkiWiki/Plugin/search.pm
@@
-93,7
+93,7
@@
sub filter (@) { #{{{
my $size=512;
my ($sample)=substr($toindex, 0, $size);
my $next=substr($toindex, $size++, 1);
- while ($next !~ /\s/) {
+ while (
defined $next &&
$next !~ /\s/) {
$sample.=$next;
$next=substr($toindex, $size++, 1);
}