add a comment explaining the 0x20..0x7f range

This commit is contained in:
cbiesinger@gmx.at 2007-07-23 20:30:00 -07:00
Родитель 6037b10a05
Коммит cf5b0ddf59
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -408,6 +408,9 @@ NS_COM PRBool NS_EscapeURL(const char *part,
//
// And, we should escape the '|' character when it occurs after any
// non-ASCII character as it may be part of a multi-byte character.
//
// 0x20..0x7e are the valid ASCII characters. We also escape spaces
// (0x20) since they are not legal in URLs.
if ((NO_NEED_ESC(c) || (c == HEX_ESCAPE && !forced)
|| (c > 0x7f && ignoreNonAscii)
|| (c > 0x20 && c < 0x7f && ignoreAscii))