git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11620
a1ca3aef-8c08-0410-bb20-
df032aa958be
CHANGES IN CUPS V1.7.2
+ - Security: The scheduler now blocks URLs containing embedded HTML
+ (STR #4356)
- The scheduler did not always update the MakeModel value in
printers.conf after updating the driver (STR #4264)
- The LPD mini daemon did not support print jobs larger than 2GB
if (path[0] != '/')
return (0);
+ /*
+ * Check for "<" or quotes in the path and reject since this is probably
+ * someone trying to inject HTML...
+ */
+
+ if (strchr(path, '<') != NULL || strchr(path, '\"') != NULL || strchr(path, '\'') != NULL)
+ return (0);
+
/*
* Check for "/.." in the path...
*/