4images Help / Hilfe > Bug Fixes & Patches

[1.7] Quotes in category names

(1/1)

Chris:
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: ---  show_input_row($lang['field_category_name'], "cat_name", $result['cat_name'], $textinput_size);
--- End code ---

and replace it with:


--- Code: ---  show_input_row($lang['field_category_name'], "cat_name", str_replace("\"", """, $result['cat_name']), $textinput_size);
--- End code ---

Navigation

[0] Message Index

Go to full version