Otwórz ips_kernel/class_ajax.php
Znajdź:
$value = $this->convert_html_entities( $value );
Zamień na:
#$value = $this->convert_html_entities( $value );
Otwórz sources/action_public/profile.php
Znajdź:
$_POST['comment'] = $class_ajax->convert_html_entities( $_POST['comment'] );
Zamień na:
#$_POST['comment'] = $class_ajax->convert_html_entities( $_POST['comment'] );
Otwórz sources/action_public/xmlout.php
Znajdź:
$post = $this->class_ajax->convert_html_entities( $post )
;
Zamień na:
#$post = $this->class_ajax->convert_html_entities( $post );
Znajdź:
$_POST['Post'] = $this->class_ajax->convert_html_entities( $_POST['Post'] );
Zamień na:
#$_POST['Post'] = $this->class_ajax->convert_html_entities( $_POST['Post'] );
Znajdź:
$this->ipsclass->parse_clean_value( $this->class_ajax->convert_html_entities( $this->ipsclass->input['post_edit_reason'] ) );
Zamień na:
$this->ipsclass->parse_clean_value( $this->ipsclass->input['post_edit_reason'] );
Znajdź:
$name = $this->class_ajax->convert_html_entities( $name );
Zamień na:
#$name = $this->class_ajax->convert_html_entities( $name );
Po wykonaniu powyższych czynności wszystko powinno być OK, jeśli tak się jednak nie stało wykonaj tylko poniższą instrukcję:
Otwórz ips_kernel/class_ajax.php
Znajdź:
/*-------------------------------------------------------------------------*/
// Convert Ajax unicode
/*-------------------------------------------------------------------------*/
function convert_unicode($t)
{
/*if ( strtolower($this->ipsclass->vars['gb_char_set']) == 'utf-8' )
{
return preg_replace_callback( '#%u([0-9A-F]{1,4})#i', array( &$this, 'dec_char_ref_to_utf8_hexdec' ), utf8_encode($t) );
}
else
{
return preg_replace_callback( '#%u([0-9A-F]{1,4})#i', create_function( '$matches', "return '' . hexdec(\$matches[1]) . ';';" ), $t );
}*/
// Javascript escape function always sends unicode
$text = preg_replace_callback( '#%u([0-9A-F]{1,4})#i', array( &$this, 'dec_char_ref_to_utf8_hexdec' ), utf8_encode($t) );
if ( strtolower($this->ipsclass->vars['gb_char_set']) != 'utf-8' )
{
$text = $this->ipsclass->txt_convert_charsets( $text, 'UTF-8' );
}
return $text ? $text : $t;
}
/**
* Convert HTML entities and respect character sets
*/
Zamień na:
/*-------------------------------------------------------------------------*/
// Convert Ajax unicode
/*-------------------------------------------------------------------------*/
function convert_unicode($t)
{
if ( strtolower($this->ipsclass->vars['gb_char_set']) == 'utf-8' )
{
return preg_replace_callback( '#%u([0-9A-F]{1,4})#i', array( &$this, 'dec_char_ref_to_utf8_hexdec' ), utf8_encode($t) );
}
else
{
return preg_replace_callback( '#%u([0-9A-F]{1,4})#i', create_function( '$matches', "return '' . hexdec(\$matches[1]) . ';';" ), $t );
}
// Javascript escape function always sends unicode
/*$text = preg_replace_callback( '#%u([0-9A-F]{1,4})#i', array( &$this, 'dec_char_ref_to_utf8_hexdec' ), utf8_encode($t) );
if ( strtolower($this->ipsclass->vars['gb_char_set']) != 'utf-8' )
{
$text = $this->ipsclass->txt_convert_charsets( $text, 'UTF-8' );
}
return $text ? $text : $t;*/
}
/**
* Convert HTML entities and respect character sets
*/