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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Current Version (Old)
 Topic Subjects are truncated when using quotes.
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Rob Poretti
Junior Member

Canada
435 Posts

Posted - 20 June 2001 :  18:18:00  Show Profile  Visit Rob Poretti's Homepage
When a set of double quotation marks are used within a Topic title (subject), the title is accepted and the double quotes are displayed properly. However, if one re-enters that post by hitting "edit", the Subject field is automatically truncated to just before the first quotation mark.

I am currently using a moded sr2 forum but I have not seen any mention of a change in functions that would cause this issue. (Actually, I just tested this on an buddies sr4 forum -- same problem!)

This has to do with the edit method of the post.asp page and how the string is processed. How should this be fixed? I'm pretty sure it is a bug...

Totally off topic: Is there a post/topic that explains how to be a Snitz Development Team Member -- or at least start that process... just curious for now...

Rob Poretti
Sascom Marketing Group ~ Toronto
vox.905.825.5373 fax.905.825.5960

Rob Poretti
Junior Member

Canada
435 Posts

Posted - 20 June 2001 :  18:29:24  Show Profile  Visit Rob Poretti's Homepage
Perhaps using...

replace(strSubject ,chr$(34), chr$(34) & chr$(34))

would do the job?....


Rob Poretti
Sascom Marketing Group ~ Toronto
vox.905.825.5373 fax.905.825.5960
Go to Top of Page

Rob Poretti
Junior Member

Canada
435 Posts

Posted - 20 June 2001 :  21:28:31  Show Profile  Visit Rob Poretti's Homepage
Well here is an approach, Thanks Stef for this:

In the post.asp page, look for where the subject field is displayed -- where the method is "EditTopic". This solves the problem:

<td bgColor="<% =strPopUpTableColor %>"><input maxLength="50" name="Subject" value="<% =server.htmlencode(Trim(ChkString(TxtSub,"display"))) %>" size="50"></td>


The "server.htmlencode" was added to solve the problem. Sorry I can't tell you what line it is at. My forum is so different it wouldn't make any sense...

BTW, I wouldn't copy and paste the code above... I think I changed the input maxlength from the original. Also this is sr2 -- don't know what sr4 looks like. Could a Snitz developer check this bug and and confirm either this fix or another appropriate one?




Rob Poretti
Sascom Marketing Group ~ Toronto
vox.905.825.5373 fax.905.825.5960
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07