[eluser]jonez[/eluser]
Another alternative is to use a pre_system hook and change the config setting at run time based on the current URL.
Code:
$hook['pre_system'][] = array(
'function' => 'check_chars',
'filename' => 'chars.php',
'filepath' => 'hooks',
);
Code:
<?php
function check_chars( ) {
if ( stripos( $_SERVER[ 'REQUEST_URI' ], '/login' ) !== false || stripos( $_SERVER[ 'REQUEST_URI' ], '/register' ) !== false ) {
$config =& load_class( 'Config', 'core' );
$config->set_item( 'permitted_uri_chars', '.....' );
}
}
?>