[Webkit-unassigned] [Bug 44132] Implement virtual path utilities for FileSystem API

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 24 11:02:41 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=44132





--- Comment #9 from Eric U. <ericu at chromium.org>  2010-08-24 11:02:40 PST ---
(From update of attachment 65211)
WebCore/storage/DOMFilePath.cpp:124
 +      DEFINE_STATIC_LOCAL(RegularExpression, unallowedNamesRegExp1, ("/(CON|PRN|AUX|NUL)([\\./]|$)", TextCaseInsensitive));
Ah, I think I see how this is supposed to work.  However, you're requiring a leading '/' before matching for e.g. "CON".  If this isn't an absolute path, that's not safe.  "CON" and "CON/safe/rest/of/path" will pass the test.  Or you could assert and document that the input path must be absolute.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list