@@ -327,13 +327,13 @@ discard block |
||
327 | 327 | $data = $new; |
328 | 328 | } else { |
329 | 329 | $data = trim($data); |
330 | - // if (function_exists('iconv') && function_exists('mb_detect_encoding')) { |
|
331 | - // $current_encoding = mb_detect_encoding($data); |
|
332 | - // |
|
333 | - // if ($current_encoding != 'UTF-8' && $current_encoding != 'UTF-16') { |
|
334 | - // $data = iconv($current_encoding, 'UTF-8', $data); |
|
335 | - // } |
|
336 | - // } |
|
330 | + // if (function_exists('iconv') && function_exists('mb_detect_encoding')) { |
|
331 | + // $current_encoding = mb_detect_encoding($data); |
|
332 | + // |
|
333 | + // if ($current_encoding != 'UTF-8' && $current_encoding != 'UTF-16') { |
|
334 | + // $data = iconv($current_encoding, 'UTF-8', $data); |
|
335 | + // } |
|
336 | + // } |
|
337 | 337 | //Global XXS? |
338 | 338 | //we need to review this. |
339 | 339 | if (function_exists('iconv') && function_exists('mb_detect_encoding')) { |
@@ -343,10 +343,10 @@ discard block |
||
343 | 343 | $data = iconv($current_encoding, 'UTF-8', $data); |
344 | 344 | } |
345 | 345 | } |
346 | - // Global XXS? |
|
346 | + // Global XXS? |
|
347 | 347 | // This is not sanitary. FILTER_SANITIZE_STRING doesn't do much. |
348 | 348 | |
349 | - // $data = filter_var($data, FILTER_SANITIZE_STRING); |
|
349 | + // $data = filter_var($data, FILTER_SANITIZE_STRING); |
|
350 | 350 | |
351 | 351 | if (is_numeric($data)) { |
352 | 352 | if ((intval($data) === (int)trim($data, '-')) && strlen((string)(int)$data) === strlen($data)) { |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | $data = (float) $data; |
356 | 356 | } |
357 | 357 | } else { |
358 | - // $data = $this->purifier->purify($data); |
|
358 | + // $data = $this->purifier->purify($data); |
|
359 | 359 | } |
360 | 360 | } |
361 | 361 |
@@ -335,10 +335,10 @@ discard block |
||
335 | 335 | { |
336 | 336 | if (trim($_SERVER['REQUEST_URI']) === '/') { |
337 | 337 | $url = $this->baseURL() |
338 | - . (!empty($_SERVER['QUERY_STRING']) ? '?' . $_SERVER['QUERY_STRING'] : ''); |
|
338 | + . (!empty($_SERVER['QUERY_STRING']) ? '?' . $_SERVER['QUERY_STRING'] : ''); |
|
339 | 339 | } else { |
340 | 340 | $url = $this->baseURL($this->uri) |
341 | - . (!empty($_SERVER['QUERY_STRING']) ? '?' . $_SERVER['QUERY_STRING'] : ''); |
|
341 | + . (!empty($_SERVER['QUERY_STRING']) ? '?' . $_SERVER['QUERY_STRING'] : ''); |
|
342 | 342 | } |
343 | 343 | |
344 | 344 | if (!empty($params)) { |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | if (is_null($this->baseURL)) { |
363 | 363 | $self = $_SERVER['PHP_SELF']; |
364 | 364 | $server = $_SERVER['HTTP_HOST'] |
365 | - . rtrim(str_replace(strstr($self, 'index.php'), '', $self), '/'); |
|
365 | + . rtrim(str_replace(strstr($self, 'index.php'), '', $self), '/'); |
|
366 | 366 | |
367 | 367 | if ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') |
368 | 368 | || !empty($_SERVER['HTTP_X_FORWARDED_PROTO']) |