Univention Bugzilla – Bug 49288
add syntax restriction for share names
Last modified: 2019-04-15 15:45:13 CEST
The syntax classes for samba share and printer names should respect the official restrictions: - A share name must be no more than 80 characters in length. - The following characters are illegal in a share name: \ / [ ] : | < > + = ; , * ? " - Control characters in range 0x00 through 0x1F, inclusive, are illegal in a share name. - All other Unicode characters are legal. - Names are case preserving and case insensitive. https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-shares--directories--files--and-metadata
cups printer names cannot contain spaces, according to the lpadmin manpage: "Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#". Also, printer and class names are not case-sensitive." But I doubt this... I tried adding a printer containing " and lp always gives me Permission Denied. I also saw some commit in CUPS which prevents < and > in URL's due to a Cross Site Scripting issues.