Language: Java
Label: safe
CWE: NVD-CWE-noinfo \u2014 

Code:
    void serverShouldRemoveMatrixVariablesWhenNotAllowed() {
        // Not allowed
        assertAccepted(forServer("/;a=b?c=d;e=f"), "/", "c=d;e=f");
        // Allowed.
        assertAccepted(forServer("/;a=b?c=d;e=f", true), "/;a=b", "c=d;e=f");
        // '%3B' should never be decoded into ';'.
        assertAccepted(forServer("/%3B?a=b%3Bc=d"), "/%3B", "a=b%3Bc=d");
    }