Skocz do zawartości
Hosting webh.pl - 20%

Błąd szybkiej edycji - jak naprawić

Rekomendowane odpowiedzi

Opublikowano
  • Manager

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
*/

intermedia - profesjonalne rozwiązania Invision Power Board, IC5

  • 1 rok później...
  • 5 miesięcy temu...

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Ostatnio przeglądający 0

  • Brak zarejestrowanych użytkowników przeglądających tę stronę.

Szukaj

Szukaj

Skonfiguruj powiadomienia push w przeglądarce

Chrome (Android)
  1. Stuknij ikonę kłódki obok paska adresu.
  2. Stuknij Uprawnienia → Powiadomienia.
  3. Dostosuj swoje ustawienie.
Chrome (Komputer)
  1. Kliknij ikonę kłódki na pasku adresu.
  2. Wybierz Ustawienia witryny.
  3. Znajdź Powiadomienia i dostosuj swoje ustawienie.