Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Closed)
 BUG (3.1sr5a7): Subject line troubles with special
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 20 February 2001 :  13:39:56  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
when using the following as a title... you get the following error:

Title:~!@#$%^&*()_+=-`;',./

Microsoft OLE DB Provider for ODBC Drivers error '80040e14' 

[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression './', 'test Adinistrator (Mike) ><'.

/alpha/v32/post_info.asp, line 473


Reinsnitz (Mike)
><)))'>
"Therefore go and make disciples of all nations,..." Matthew 28:19a

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 20 February 2001 :  13:45:18  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
that was done on http://forum.snitz.com/alpha/v32/ by the way :)

Reinsnitz (Mike)
><)))'>
"Therefore go and make disciples of all nations,..." Matthew 28:19a
Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 26 February 2001 :  01:33:09  Show Profile  Visit gor's Homepage
In post_info.asp change line 213 to:

txtSubject = chkString(Request.Form("Subject"),"SQLString")


Otherwise the ' doesn't get converted to '' and breaks the sql statement.
This doesn't need to be done for "message" because that still gets converted way down in the function ChkString() in inc_functions.asp

Pierre
Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 26 February 2001 :  01:37:15  Show Profile  Visit gor's Homepage
Another thing:

If you use " in a topic title, everything after the " disapears when you edit the topic.
This can be fixed by adding this to ChkString() in inc_functions.asp:

if fField_Type = "edit" then
if strAllowHTML <> "1" then
fString = HTMLEncode(fString)
end if
fString = Replace(fString, """", "&quot;")
ChkString = fString
exit function
end if


and change line 708 in post.asp to:[code]
<td bgColor="<% =strPopUpTableColor %>"><input maxLength="50" name="Subject" value="<% =Trim(ChkString(TxtSub,"edit")) %>" size="40"></td>[code]

There still is a problem with post_info.asp after that, because in the link with the topic title that is displayed there, it still breaks after the " (did that before also).

Pierre
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 26 February 2001 :  09:26:17  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
yea... but this wasn't an issue in 3.1sr4... so basicaly we need to figure out what changed between now and then right?

Reinsnitz (Mike)
><)))'> Need a Mod?
"Therefore go and make disciples of all nations,..." Matthew 28:19a
Go to Top of Page

ajy
New Member

USA
55 Posts

Posted - 26 February 2001 :  13:16:27  Show Profile  Visit ajy's Homepage  Send ajy an ICQ Message
When I did the changes you have here It fixed the " issue Gor mentioned... and also it let me edit the topic subject and add a " ' " to it but only when going back and editing the topic subject after it was posted originally without the " ' " ...when I create a new one with a " ' " it still gived that error.

Just wanted to let you know.

Thanks



ajy
http://www.ajy.net/
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 26 February 2001 :  13:44:52  Show Profile  Visit HuwR's Homepage
ajy, can you resend me your post and post_info files and inc_top, i will have a quick look

Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 26 February 2001 :  14:11:47  Show Profile  Visit gor's Homepage
quote:

When I did the changes you have here It fixed the " issue Gor mentioned... and also it let me edit the topic subject and add a " ' " to it but only when going back and editing the topic subject after it was posted originally without the " ' " ...when I create a new one with a " ' " it still gived that error.



ajy,

there are more lines with

txtSubject = ChkString(Request.Form("Subject"),"title")

in post_info.asp

I forgot to mention that. All of them need to be changed to "edit".

Pierre
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 26 February 2001 :  14:18:03  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
I always get nervouse when somone says "All"

Reinsnitz (Mike)
><)))'> Need a Mod?
"Therefore go and make disciples of all nations,..." Matthew 28:19a
Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 26 February 2001 :  15:37:43  Show Profile  Visit gor's Homepage
yeah yeah, I heard you the first time, I'll look into the differences since version 3.1 SR4 first

Pierre
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 26 February 2001 :  15:56:48  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
I need to work on that icon...

Reinsnitz (Mike)
><)))'> Need a Mod?
"Therefore go and make disciples of all nations,..." Matthew 28:19a
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 06 March 2001 :  23:08:30  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
fixed in the source of sf2k_32a5.zip

Reinsnitz (Mike)
><)))'> Need a Mod?
"Therefore go and make disciples of all nations,..." Matthew 28:19a
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07