Should PHP header headers be encoded?
header("Location: ".$_SERVER["REQUEST_URI"]); header("Location: ".rawurlencode($_SERVER["REQUEST_URI"]));
If so, why, when and how?
You only need to encode it if you have any special characters (defined in RFC1806 ) in your URL. Especially you should encode all URLs with the following characters: {} | \ ^ ~ [] `(with RFC1738)
Source: https://habr.com/ru/post/1200121/More articles:Using the go / ast - go packageMany of the many in mongodb using spring configuration (annotation recommended) - javaCustom go to watch page - androidDifference between different warping methods in OpenCV - c ++https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1200120/why-use-role-attribute-in-html5&usg=ALkJrhjsBLchSotJVW9UnVcqPC278HsY6gUnularJS unit testing error when using clientWidth - angularjshttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1200123/pointerinteger-arithmetic-undefined-behaviour&usg=ALkJrhjPNvGgiQJIkQEg0iu-A_uSXDzJZgAndroid draggable ImageVIew - androidUsing "this" instead of "scope" with controllers and AngularJS directives - javascriptColdFusion folder permission becomes read-only - coldfusionAll Articles