Permalink
Browse files

resolves #72 , Only variable references should be returned by reference

  • Loading branch information...
1 parent b991faf commit 132dc50d02384eabdd7d40636de2fe8e997e5863 @hjue committed Jun 8, 2015
Showing with 5 additions and 4 deletions.
  1. +5 −4 system/core/Common.php
@@ -254,7 +254,8 @@ function &get_config($replace = array())
}
}
- return $_config[0] =& $config;
+ $_config[0] =& $config;
+ return $_config[0];
}
}
@@ -514,16 +515,16 @@ function _exception_handler($severity, $message, $filepath, $line)
function remove_invisible_characters($str, $url_encoded = TRUE)
{
$non_displayables = array();
-
+
// every control character except newline (dec 10)
// carriage return (dec 13), and horizontal tab (dec 09)
-
+
if ($url_encoded)
{
$non_displayables[] = '/%0[0-8bcef]/'; // url encoded 00-08, 11, 12, 14, 15
$non_displayables[] = '/%1[0-9a-f]/'; // url encoded 16-31
}
-
+
$non_displayables[] = '/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]+/S'; // 00-08, 11, 12, 14-31, 127
do

0 comments on commit 132dc50

Please sign in to comment.