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)
 V33(.03) BUG+FIX: Bad Word in Subject
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

heptite
Average Member

USA
547 Posts

Posted - 15 November 2001 :  06:11:57  Show Profile  Visit heptite's Homepage  Send heptite an ICQ Message  Send heptite a Yahoo! Message
Stim, on your test site:

http://ttnetworks.121hosts.net/snitzv333/FORUM.asp?FORUM_ID=1

When viewing using active.asp, the bad word in the title is still there too.

Sue

Additional support files - http://www.snitz.info


Edited by - da_stimulator on 15 November 2001 06:17:33

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 15 November 2001 :  06:20:23  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
active.asp this line (431):

ChkString(left(Topic_Subject, 50),"display") & _

Should be:

ChkString(left(Topic_Subject, 50),"title") & _

Forum.asp this line (365):

<% =ChkString(left(rs("T_SUBJECT"), 50),"display") %>

SHould be

<% =ChkString(left(rs("T_SUBJECT"), 50),"title") %>

----
-Eric (da_stimulator)
Stims Snitz Test area - Running 3.3.03, 4 beta, Huw's code, and Davio's code
Need a Mod? Check out the Mod Resource
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 15 November 2001 :  06:24:47  Show Profile
doesn't look like both sections of code where fixed from this topic:

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=17180
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 15 November 2001 :  06:28:42  Show Profile
I see what happened now.

You added it to the wrong section in inc_functions.asp

it should have been in the:

if fField_Type = "display" then


not in the:

if fField_Type = "edit" then
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 15 November 2001 :  06:32:25  Show Profile
lines 509 - 525:

	if fField_Type = "edit" then
if strAllowHTML <> "1" then
fString = HTMLEncode(fString)
end if
fString = Replace(fString, """", """)
ChkString = fString
if strBadWordFilter = "1" then
fString = chkBadWords(fString)
end if
exit function
end if
if fField_Type = "display" then
if strAllowHTML <> "1" then
fString = HTMLEncode(fString)
end if
chkString = fString
exit function


should be:

	if fField_Type = "edit" then
if strAllowHTML <> "1" then
fString = HTMLEncode(fString)
end if
fString = Replace(fString, """", """)
ChkString = fString
exit function
end if
if fField_Type = "display" then
if strAllowHTML <> "1" then
fString = HTMLEncode(fString)
end if
if strBadWordFilter = "1" then
fString = chkBadWords(fString)
end if
chkString = fString
exit function
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 15 November 2001 :  06:35:48  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
aha I see what I did now... ok thx Richard - Updated for 3.4

Just to double check that Im not asleep... heres the code...


if fField_Type = "edit" then
if strAllowHTML <> "1" then
fString = HTMLEncode(fString)
end if
fString = Replace(fString, """", """)
ChkString = fString
exit function
end if
if fField_Type = "display" then
if strAllowHTML <> "1" then
fString = HTMLEncode(fString)
end if
if strBadWordFilter = "1" or strBadWordFilter = 1 then
fString = ChkBadWords(fString)
end if
chkString = fString
exit function
elseif fField_Type = "message" then
if strAllowHTML <> "1" then


----
-Eric (da_stimulator)
Stims Snitz Test area - Running 3.3.03, 4 beta, Huw's code, and Davio's code
Need a Mod? Check out the Mod Resource
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 19 November 2001 :  02:46:43  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
Fixed for 3.4

----
-Eric (da_stimulator)
Stims Snitz Test area
Snitz Mod Resource
PHP Script Center -Quality PHP Scripts
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 24 November 2001 :  12:37:59  Show Profile
Two chkstring "title" issues and re-fix in inc_functions.asp Fixed in [v40b03patch001]...

Think Pink
Test Site not ready yet | Post v40b03 Patches
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.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07