Print Page | Close Window

codes in subject, automatically...

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=10572
Printed Date: 08 April 2026 at 10:29am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: codes in subject, automatically...
Posted By: HippoJim
Subject: codes in subject, automatically...
Date Posted: 23 May 2004 at 9:46am

I was looking into increasing the allowed length of the subjects in my forum and saw this in the database (spaces added so it would show up in your browser):

Reset network c& # 111 ;nfig in WinXp...

I see that in the message_form_inc.asp and rte_message_form_inc.asp the max length of the field is 41, but in the database it is 70.  I'm guessing that the database field is bigger to make room for these code replacements and I'm also guessing that this all has something to do with internationalization.... anyway, I'm just trying to find out if there would be a problem increasing these lengths to accomodate longer subjects.

Thanks,



-------------
Jim Jones
Co-Hippo
http://www.HippoV.com - http://www.HippoV.com



Replies:
Posted By: WebWiz-Bruce
Date Posted: 23 May 2004 at 1:35pm
The code changes are put in by the security filters to prevent malicious code being run in the forum. It prevents things like XSS hacking etc.

If you make your subject longer make sure you also increase the field size in the database and increase the trim size when the form field is read into the ASP application.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: HippoJim
Date Posted: 23 May 2004 at 7:25pm

Thanks for the quick reply.

Just to be sure that I understand, I have to make the change 3 places

1) in the form field (in the rte and regular pages)

2) in the design of the table on the sql server

3) somewhere else... this trim size you mentioned... Not sure what or where that is. 

Or is #3 = to #1?

Thanks,



-------------
Jim Jones
Co-Hippo
http://www.HippoV.com - http://www.HippoV.com


Posted By: WebWiz-Bruce
Date Posted: 24 May 2004 at 4:02am
When data is read into the ASP application from form input it is cut down so only the correct amount of data can be passed.

Have a look in post_message.asp at line 149 you will find:-

strSubject = Trim(Mid(Request.Form("subject"), 1, 41))

The part in red will also need to be changed to the maximum field size of the forms input box.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net