Author
Message

nail problems on title syntax error

title = Sone'm

 

2015-05-24 20:36 / Fatal error: SQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'm', 'Gülce Sone'm Türü Şiirler', '', 0)' at line 1

Hi, Kaan!

Thanks, please add bug in bugtracker.

Fix 

file: admin.functions.php
function: sed_structure_newcat

replace

$sql = sed_sql_query("INSERT INTO $db_structure (structure_code, structure_path, structure_title, structure_desc, structure_icon, structure_group) VALUES ('".sed_sql_prep($code)."', '$path', '$title', '$desc', '$icon', ".(int)$group.")");

on

$sql = sed_sql_query("INSERT INTO $db_structure (structure_code, structure_path, structure_title, structure_desc, structure_icon, structure_group) VALUES ('".sed_sql_prep($code)."', '".sed_sql_prep($path)."', '".sed_sql_prep($title)."', '".sed_sql_prep($desc)."', '".sed_sql_prep($icon)."', ".(int)$group.")");

Forever unshaven, red-eyed, detached from reality, with his cockroaches in my head. And let it always will be!