Defensive programming.
Patch by fu.
diffs (12 lines):
diff -r c9cda49a744f -r 8f0046eee5f5 cgi-bin/ljtextutil.pl
--- a/cgi-bin/ljtextutil.pl Sat Sep 04 18:06:34 2010 +0800
+++ b/cgi-bin/ljtextutil.pl Sat Sep 04 18:17:38 2010 +0800
@@ -560,7 +560,7 @@ sub html_trim {
# truncate and stop parsing
$content = LJ::text_trim($content, undef, ($char_max -
$content_len));
$out .= $content;
- $$truncated = 1;
+ $$truncated = 1 if ref $truncated;
last;
}
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog