if ((datadir = getenv("CUPS_DATADIR")) == NULL)
datadir = CUPS_DATADIR;
- // Pull out the
+ // Pull out the path to the .drv file...
if (httpSeparateURI(HTTP_URI_CODING_ALL, name, scheme, sizeof(scheme),
userpass, sizeof(userpass), host, sizeof(host), &port,
resource, sizeof(resource)) < HTTP_URI_OK ||
*slash; /* Pointer to next slash */
#endif /* __APPLE__ */
+
if (name[0] == '/' || strstr(name, "../") || strstr(name, "/.."))
{
/*
snprintf(line, sizeof(line), "/%s", name);
}
+ else
#elif defined(__linux)
if (!strncmp(name, "lsb/usr/", 8))