mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
f6a1a10613
commit
6073714909
1 changed files with 5 additions and 1 deletions
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue