Welcome Guest, Not a member yet? Register   Sign In
Disallowed Key Characters -Fix
#1

[eluser]smartweb[/eluser]
\system\core\Input.php
CODE:
function _clean_input_keys($str)
{
if ( ! preg_match("/^[a-z0-9:_\/-]+$/i", $str))
{
exit('Disallowed Key Characters.');
}
Change to :
function _clean_input_keys($str)
{
$config = &get;_config('config');
if ( ! preg_match("/^[".$config['permitted_uri_chars']."]+$/i", rawurlencode($str)))
{exit('Disallowed Key Characters.'); }
#2

[eluser]InsiteFX[/eluser]
You do not modify Core Classes you extend them!

Think about what is going to happen now if you upgrade the system!

InsiteFX
#3

[eluser]smartweb[/eluser]
CI version 2.02
clients's cookies name have any problem.
#4

[eluser]InsiteFX[/eluser]
Only in IE! You need to chaange the cookie name from ci_session to cisession

IE doe's not like the underscore character!

InsiteFX
#5

[eluser]smartweb[/eluser]
Yes, only XP OS with IE.

My config.php (/application/config/config.php)
///
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;
//

Can I change all 'ci_session' to 'ci-session' ?




Theme © iAndrew 2016 - Forum software by © MyBB