@@ -19,6 +19,6 @@ |
||
19 | 19 | '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', |
20 | 20 | ]; |
21 | 21 | |
22 | -$result =& $data; |
|
22 | +$result = & $data; |
|
23 | 23 | unset($data); |
24 | 24 | return $result; |
@@ -19,6 +19,6 @@ |
||
19 | 19 | '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', |
20 | 20 | ]; |
21 | 21 | |
22 | -$result =& $data; |
|
22 | +$result = & $data; |
|
23 | 23 | unset($data); |
24 | 24 | return $result; |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | |
96 | 96 | $uri = (string)\preg_replace_callback( |
97 | 97 | '/[\x80-\xFF]+/', |
98 | - function ($m) { |
|
98 | + function($m) { |
|
99 | 99 | return \rawurlencode($m[0]); |
100 | 100 | }, |
101 | 101 | $uri |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | |
104 | 104 | $uri = (string)\preg_replace_callback( |
105 | 105 | '/(?:%[89A-F][0-9A-F])+/i', |
106 | - function ($m) { |
|
106 | + function($m) { |
|
107 | 107 | return \rawurlencode(UTF8::rawurldecode($m[0])); |
108 | 108 | }, |
109 | 109 | $uri |
@@ -118,8 +118,8 @@ discard block |
||
118 | 118 | ) { |
119 | 119 | // Use ob_start() to buffer content and avoid problem of headers already sent... |
120 | 120 | $severProtocol = ($_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.1'); |
121 | - \header($severProtocol . ' 301 Moved Permanently'); |
|
122 | - \header('Location: ' . $uri); |
|
121 | + \header($severProtocol.' 301 Moved Permanently'); |
|
122 | + \header('Location: '.$uri); |
|
123 | 123 | exit(); |
124 | 124 | } |
125 | 125 |