Allow extended ASCII characters in URIs
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
bfd084e3e9
commit
ebb27741b1
|
@ -10734,7 +10734,7 @@ skip_to_end_of_word_and_terminate(char **ppw, int eol)
|
|||
{
|
||||
/* Forward until a space is found - use isgraph here */
|
||||
/* See http://www.cplusplus.com/reference/cctype/ */
|
||||
while (isgraph((unsigned char)**ppw)) {
|
||||
while ((unsigned char)**ppw > 127 || isgraph((unsigned char)**ppw)) {
|
||||
(*ppw)++;
|
||||
}
|
||||
|
||||
|
@ -18473,7 +18473,7 @@ get_uri_type(const char *uri)
|
|||
* and % encoded symbols.
|
||||
*/
|
||||
for (i = 0; uri[i] != 0; i++) {
|
||||
if (uri[i] < 33) {
|
||||
if ((unsigned char)uri[i] < 33) {
|
||||
/* control characters and spaces are invalid */
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue