Skip to content

Commit

Permalink
resolves #72 , Only variable references should be returned by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
hjue committed Jun 8, 2015
1 parent b991faf commit 132dc50
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions system/core/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ function &get_config($replace = array())
}
}

return $_config[0] =& $config;
$_config[0] =& $config;
return $_config[0];
}
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 132dc50

Please sign in to comment.