Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 May 2018 10:49:51 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r333875 - head/sys/dev/usb
Message-ID:  <201805191049.w4JAnpKx026377@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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++;
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805191049.w4JAnpKx026377>