[Webkit-unassigned] [Bug 48225] New: Language attribute validation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 25 02:32:15 PDT 2010


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

           Summary: Language attribute validation
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: leandrogracia at chromium.org


The contents of the language attribute are expected to follow the BCP47 specification (http://www.rfc-editor.org/rfc/bcp/bcp47.txt) however no validation at all is performed on it. This patch introduces a brief validation to filter the language attribute contents to [A-Za-z0-9-]* with the purpose of making it safe to use it, for example, as a parameter in URLs. Please note that this doesn't guarantee that the attribute contains a completely valid language tag according to BCP47 as this is not the purpose of this patch.

-- 
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