Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for stringContainsCTLByte (0.25 sec)

  1. src/net/http/request.go

    		// CONNECT requests normally give just the host and port, not a full URL.
    		ruri = host
    		if r.URL.Opaque != "" {
    			ruri = r.URL.Opaque
    		}
    	}
    	if stringContainsCTLByte(ruri) {
    		return errors.New("net/http: can't write control character in Request.URL")
    	}
    	// TODO: validate r.Method too? At least it's less likely to
    	// come from an attacker (more likely to be a constant in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
Back to top