Author: trasz Date: Sat May 19 10:49:51 2018 New Revision: 333875 URL: https://svnweb.freebsd.org/changeset/base/333875
Log: 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 Modified: head/sys/dev/usb/usb_request.c Modified: head/sys/dev/usb/usb_request.c ============================================================================== --- head/sys/dev/usb/usb_request.c Sat May 19 07:31:35 2018 (r333874) +++ head/sys/dev/usb/usb_request.c Sat May 19 10:49:51 2018 (r333875) @@ -1155,7 +1155,11 @@ usbd_req_get_string_any(struct usb_device *udev, struc *s == '+' || *s == ' ' || *s == '.' || - *s == ',') { + *s == ',' || + *s == ':' || + *s == '/' || + *s == '(' || + *s == ')') { /* allowed */ s++; } _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"