Zen Cart Logo
Forums / All Other Contributions/Addons / Flexible Footer menu sanitation issue?

Flexible Footer menu sanitation issue?

Views: 786

Results 1 to 3 of 3
15 Mar 2017, 11:05 AM
#1
meijei avatar

meijei

New Zenner

Join Date:
Jul 2007
Posts:
8
Plugin Contributions:
0

Flexible Footer menu sanitation issue?

I have slowly been working to upgrade an old site on a development server.

Westminster New template and all the plugins related to that template.
ZC version 1.5.5e
PHP Version: 5.6.20 (Zend: 2.6.0)

zenup dot werkstatthosting dot com (down for maintenance but viewable)

I started with 1.5.5a and when i upgraded it (to d i think and now e) i began to get garbage font awesome characters in the flexible footer menu when editing titles or texts via the admin. I thought perhaps it was a sanitation issue and I tried changing the texts in the database as well as rbarbour's addition to init_sanitize https://www.zen-cart.com/showthread.php?209715-Flexible-Footer-Columns-Menu-for-1-5-x&p=1308467#post1308467 .

Neither worked for me so I have also been trying to create a separate file using the documentation for sanitation and coming up with something based on that. I notice this code in the flexible_footer_menu file in the modules folder:
$page_query_list_footer[$rows]['id'] = $page_query->fields['pages_id'];
$page_query_list_footer[$rows]['header'] = $page_query->fields['col_header'];
$page_query_list_footer[$rows]['title'] = $page_query->fields['page_title'];
$page_query_list_footer[$rows]['text'] = $page_query->fields['col_html_text'];
$page_query_list_footer[$rows]['image'] = $page_query->fields['col_image'];
$page_query_list_footer[$rows]['sort'] = $page_query->fields['col_sort_order'];
$URL = $page_query->fields['page_url'];

would it make sense to come up with a multidimensional sanitation based on this?
Thanks!

15 Mar 2017, 2:10 PM
#2
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

Join Date:
Feb 2008
Posts:
534
Plugin Contributions:
0

Re: Flexible Footer menu sanitation issue?

From the Flexible Footer forum by the mod author: https://www.zen-cart.com/showthread.php?209715-Flexible-Footer-Columns-Menu-for-1-5-x&p=1308467#post1308467

The workaround I used before stumbling on that was to make all edits directly in db: flexible_footer_menu table (column col_html_text) via phpMyAdim, using a text editor then cut/paste. (typing directly in the table didn't work - had to be cut/paste).

15 Mar 2017, 4:21 PM
#3
meijei avatar

meijei

New Zenner

Join Date:
Jul 2007
Posts:
8
Plugin Contributions:
0

Re: Flexible Footer menu sanitation issue?

Thanks for your suggestion saxophoneplayer. I did try that too, also without success.