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+FIX (3.2a01): ' in title shows up as ''
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 21 February 2001 :  22:53:56  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
ok... this is anoying... I looked through the functions in inc_functions.asp and am to tired to make sence of it... will try again tomorow if somone else doesn't find an answer in the next 16 hours.

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

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 21 February 2001 :  22:54:37  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
that is only on the topic.asp... it shows up fine everywhere else.

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

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 21 February 2001 :  22:55:17  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
er... maby it will do it in forum titles to up there... I don't know... going to sleep... bah... gotta upload code first... then sleep

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 :  06:40:30  Show Profile  Visit gor's Homepage
That is because you commented out a few lines in ChkString():

if fField_Type = "title" then
if strAllowHTML <> "1" then
fString = HTMLEncode(fString)
end if
' chkBadWords(fString)
' chkString = fString
' exit function
end if


This causes "title" fields to also get to this part of ChkString():

if fField_Type <> "hidden" and _
fField_Type <> "preview" then
fString = Replace(fString, "'", "''")
end if

and that replaces ' with ''

However if you remove the ' in front of those three lines, it breaks when you try to store a title containing a '

To fix that problem you should use "SQLString" instead of title when checking the Title in post_info.asp

If you change line 414 in post_info.asp to:

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


you can remove the ' in front of the checks in title.

p.s. didn't fix it here at the site yet, so you could see the difference yourself.

Pierre
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 26 February 2001 :  09:10:56  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
I tried several different combinations of the three commented lines... trying to get badwords to work... trying to get the ' and '' to work right... and nothing seemed to work... so I left it with the path of leaste resistance as we continue to trouble shoot this.

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 :  22:46:42  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
changed 414 and 213
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.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07