Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 58661: avoid duplicate characters in stack traces #27

Closed
wants to merge 1 commit into from

Conversation

barney2k7
Copy link
Contributor

This fixes https://bz.apache.org/bugzilla/show_bug.cgi?id=58661

As suspected, the problem is in the 'br-replace' template that is off by one character in some cases:
$secondhalflen is actually less than string-length($secondhalfword) in case the number of chars in word is
even. This leads to $firsthalflen being calculated too long, resulting in a duplicated character.

Note that unlike the patch attached to the bug, this pull requests solves just the duplicate character problem - nothing else.

The problem was that $secondhalflen is actually less than
string-length($secondhalfword) in case the number of chars in word is
even. This leads to $firsthalflen being calculated too long, resulting
in a duplicated character.
@bodewig
Copy link
Member

bodewig commented Dec 6, 2016

Thanks a lot.

I vaguely recall looking at the original patch and thinking "this is big", but strangely never commented.

@asfgit asfgit closed this in 8925f08 Dec 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants