Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - codes in subject, automatically...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

codes in subject, automatically...

 Post Reply Post Reply
Author
HippoJim View Drop Down
Newbie
Newbie


Joined: 21 May 2004
Location: United States
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote HippoJim Quote  Post ReplyReply Direct Link To This Post Topic: codes in subject, automatically...
    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,

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
HippoJim View Drop Down
Newbie
Newbie


Joined: 21 May 2004
Location: United States
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote HippoJim Quote  Post ReplyReply Direct Link To This Post 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,

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.