Author Topic: [1.7] Quotes in category names  (Read 11217 times)

0 Members and 1 Guest are viewing this topic.

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
[1.7] Quotes in category names
« on: March 16, 2005, 04:32:40 AM »
If you create a category with a double quoted word, for example: This is "crazy". It ends up in the database with quotes and is displayed with quotes when rendered in html as simple text. However, when it is used as the value for an edit control, e.g. in Edit Category (action=editcat) the quoted part does not appear.

in /admin/categories.php find:

Code: [Select]
  show_input_row($lang['field_category_name'], "cat_name", $result['cat_name'], $textinput_size);
and replace it with:

Code: [Select]
  show_input_row($lang['field_category_name'], "cat_name", str_replace("\"", """, $result['cat_name']), $textinput_size);
« Last Edit: July 16, 2005, 08:07:20 PM by V@no »