 | |  | | | ReviewPost Bug Reports Let us know about any post installation problems you are having with ReviewPost. |
July 18th, 2006, 12:28 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 82
| Sql error caused by an apostrophe ( ' ) www.rig-talk.com
Tried to submit a "ticket" to you guys, but I don't have permission to do so.
Anyway, when I create a category, and add an "extra field"; if I put an apostrophe in the name "Manufacturer's URL", I get errors when adding subcategories. Quote:
We're sorry, but the system experienced an unrecoverable error. Please try again later.
Script: adm-misc
Query: INSERT INTO rpost_categories (id,catname,description,catorder,thumbs,parent,header,footer,headtags,password,ugnoview,ugnoupload,ugnoanno, template,extra1,extra2,extra3,extra4,extra5,extra6,sortorder,frames) VALUES(NULL,'Agile','','4','yes',10,'','','', '', '', '', '167,468,604,1,2,3', '0', 'Manufacturer's URL', '', '','', '', '', '2', '')
Result: 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 's URL', '', '','', '', '', '2', '')' at line 4
Database handle: Resource id #6
| I can remove the apostrophe and it will create subcategories fine after that. I assume this is a bug and I'm wondering what kind of issues it may cause in other parts of the program in the future.
|
| |
July 18th, 2006, 12:48 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
In adm-misc.php try adding these in bold Code: Content visible to verified customers only.
|
| |
July 18th, 2006, 01:06 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 82
|
Nah, that didn't do it. Unless I added it wrong, here's the whole string: Quote: |
typecast($_POST, array('catname' => STRING, 'catdesc' => STRING, 'myheader' => STRING, 'delcomments' => STRING, extra1 => STRING, extra2 => STRING, extra3 => STRING, extra4 => STRING, extra5 => STRING, extra6 => STRING,
| |
| |
July 18th, 2006, 03:33 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
It should meaning it should typecast those variables and add a slash I will test it
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 12:16 PM. | |