Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Site name encoding in backend and frontend
#1
As user p91 noticed (see thread http://get-simple.info/forum/topic/4490/...side-name/ ), the site name isn't rendered the same way in frontend and admin panel.

If you enter a site name like GS λ, in the frontend it is displayed as:
Code:
GS λ
but in the backend (admin, login page...) as:
Code:
GS λ

That's because get_site_name (admin/inc/theme_functions.php) echoes it with:
Code:
trim(stripslashes($SITENAME))
However, in the admin panel (admin/template/include-nav.php) it is echoed with:
Code:
cl($SITENAME)

I think GS dev team should decide which method to use for both cases.

If you decide to allow html in the site name, then IMO there should be a get_clean_site_name tag (like get_page_title vs get_page_clean_title). If not, it would not be needed.
Reply
#2
Since we support utf-8 why use html in the title at all ?
Works fine for me, just stick the utf-8 character in there.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
See issue #357
https://github.com/GetSimpleCMS/GetSimpleCMS/issues/357
Reply




Users browsing this thread: 1 Guest(s)