Originally Posted by
Feznizzle
Yes, this is a language file: includes/languages/english/MY_TEMPLATE/header.php
Edited like this:
define('HEADER_SEARCH_BUTTON', '<i class="fa fa-search" aria-hidden="true"></i>');
I understand sanitizing the db, but I'm confused by why the language file won't allow me to escape special characters ( \" )?
The admin language file (admin/includes/language/english.php) allowed me to do this:
define('ERROR_EDITORS_FOLDER_NOT_FOUND', 'You have an HTML editor selected via Configuration>My Store>HTML Editor, but the \'/'.DIR_WS_EDITORS.'\' folder cannot be located. Please disable your selection or move your editor files into the \''.DIR_WS_CATALOG.DIR_WS_EDITORS.'\' folder.<br ><br ><strong>REMINDER: </strong> You specified the editor folder name ('.DIR_WS_EDITORS.') in the config file located at '.DIR_FS_ADMIN.'inludes/configure.php');
When I use the back slash in the HEADER_SEARCH_BUTTON, the backslash comes thru literally and the " gets turned into unicode.
Bookmarks