Skip to content

Commit 7390487

Browse files
author
Felipe Zimmerle
committed
Fix utf-8 character encoding conversion
Reported on: #1794
1 parent f66cd41 commit 7390487

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
DD MMM YYYY - 2.9.3 - To be released
22
------------------------------------
33

4+
* Fix utf-8 character encoding conversion
5+
[Issue #1794 - @tinselcity, @zimmerle]
46
* Fix ip tree lookup on netmask content
57
[Issue #1793 - @tinselcity, @zimmerle]
68
* IIS: set overrideModeDefault to Allow so that individual websites can

apache2/re_operators.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4321,7 +4321,7 @@ static int detect_utf8_character(const unsigned char *p_read, unsigned int lengt
43214321
else {
43224322
unicode_len = 4;
43234323
/* compute character number */
4324-
d = ((c & 0x07) << 18) | ((*(p_read + 1) & 0x3F) << 12) | ((*(p_read + 2) & 0x3F) < 6) | (*(p_read + 3) & 0x3F);
4324+
d = ((c & 0x07) << 18) | ((*(p_read + 1) & 0x3F) << 12) | ((*(p_read + 2) & 0x3F) << 6) | (*(p_read + 3) & 0x3F);
43254325
}
43264326
}
43274327
/* any other first byte is invalid (RFC 3629) */

0 commit comments

Comments
 (0)