Permit "(", ")", ":", and "/" in USB string descriptors.

This way we can properly show descriptors with URLs in them.

Reviewed by:	hselasky@
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Edward Tomasz Napierala 2018-05-19 10:49:51 +00:00
parent f6a1a10613
commit 6073714909

View file

@ -1155,7 +1155,11 @@ usbd_req_get_string_any(struct usb_device *udev, struct mtx *mtx, char *buf,
*s == '+' ||
*s == ' ' ||
*s == '.' ||
*s == ',') {
*s == ',' ||
*s == ':' ||
*s == '/' ||
*s == '(' ||
*s == ')') {
/* allowed */
s++;
}