Index: trunk/core/kernel/processors/main_processor.php =================================================================== diff -u -r2837 -r3226 --- trunk/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 2837) +++ trunk/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 3226) @@ -83,7 +83,7 @@ unset($params['template']); $prefix=isset($params['prefix']) ? $params['prefix'] : ''; unset($params['prefix']); $index_file = isset($params['index_file']) ? $params['index_file'] : null; unset($params['index_file']); - + if( !getArrayValue($params,'no_amp') ) { return str_replace('&', '&', $this->Application->HREF($t,$prefix,$params,$index_file)); @@ -219,6 +219,9 @@ $ret = $this->Application->RecallVar( $this->SelectParam($params,'name,var,param') ); $ret = ($ret === false && isset($params['no_null'])) ? '' : $ret; if( getArrayValue($params,'special') || getArrayValue($params,'htmlchars')) $ret = htmlspecialchars($ret); + + if ( getArrayValue($params, 'urlencode') ) $ret = urlencode($ret); + return $ret; } @@ -298,7 +301,7 @@ if( getArrayValue($params, 'escape') ) $ret = addslashes($ret); return $ret; } - + function ConfigEquals($params) { $option = $this->SelectParam($params, 'name,option,var'); @@ -676,7 +679,7 @@ if( !$this->Application->LoggedIn() ) { $t = $this->Application->GetVar('t'); - $this->Application->Redirect( $params['login_template'], Array('next_template'=>$t) ); + $this->Application->Redirect( $params['login_template'], Array('next_template'=>$t) ); } else {