Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Too much convert functions - unpredictable result with non-english
#1
You are using this queue of convert in admin/setting.php, line 60
Code:
$SITENAME = htmlentities(stripslashes(strip_tags(html_entity_decode($_POST['sitename'], ENT_QUOTES))));

The combination of htmlentities and html_entity_decode given unpredictable result for non-english (non-latin) words.

I have made new code (admin/setting.php, line 60):
Code:
$SITENAME = stripslashes(strip_tags(html_entity_decode($_POST['sitename'], ENT_QUOTES)));
and now my site with russian letters working stably.
Reply




Users browsing this thread: 1 Guest(s)