Print Page | Close Window

Strange bug in simple ASP code...

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=2143
Printed Date: 29 March 2026 at 8:32am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Strange bug in simple ASP code...
Posted By: Gullanian
Subject: Strange bug in simple ASP code...
Date Posted: 25 April 2003 at 6:45pm

Hi guys, heres a simple slice of code:

If len(rsCommon("Subject")) > 18 then
  str_topic_subject = left(rsCommon("Subject"),18) & "..."
else
  str_topic_subject = rsCommon("Subject")
end if

The code simply cuts down the length of a topic and adds ... to the end of it if its too long to display.

My question is that sometimes for no apparent reason it adds &# to the end of the string!

Some examples:

Wheres the pics on this site?

Turns into:

Wheres the pics &#...

 




Replies:
Posted By: Gullanian
Date Posted: 25 April 2003 at 6:53pm

How utterly strange, I have found the problem, I think its to do with the forum?

For some reason sometimes the "o" is replaced with "o"

Why does it do this?

So

Wheres the pics on this site?

Is written as

Wheres the pics on this site?

In the database



Posted By: MadDog
Date Posted: 25 April 2003 at 7:03pm

The forum does this. Its because of the code filter in the forum.

Edit:

p.s. I want my $100 back that you took



-------------
http://www.iportalx.net" rel="nofollow">



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