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 (Open)
 url with space after tag
 New Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

modifichicci
Average Member

Italy
787 Posts

Posted - 17 April 2008 :  16:34:50  Show Profile  Visit modifichicci's Homepage  Reply with Quote
www.snitz.com
http://www.snitz.com
www.snitz.com
www.snitz.com" target="_blank">http://www.snitz.com" target="_blank"> www.snitz.com" target="_blank">http://www.snitz.com

if I post a link with tag [ url] if there is a space after the close tag ] I have this layout
<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum

Edited by - modifichicci on 17 April 2008 16:35:20

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 17 April 2008 :  17:07:10  Show Profile  Send ruirib a Yahoo! Message
Sorry, I don't think it is a bug, because you're not using the url tag correctly. If you were, then it would be a bug.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 18 April 2008 :  12:11:34  Show Profile  Visit modifichicci's Homepage
I used [*url] http://www.snitz.com [*/url] obviously without *

and I get this
http://www.snitz.com " target="_blank"> http://www.snitz.com

but if I use
[*url] www.snitz.com [*/url]
I get
www.snitz.com
what is wrong in tag use?
<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum

Edited by - modifichicci on 18 April 2008 12:13:33
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 18 April 2008 :  12:19:58  Show Profile  Send ruirib a Yahoo! Message
You said you were using a space after the close tag, and that was the bug you pointed out. The tags should not be used with spaces, so how come using them with spaces is a bug?

There's the possibility that you're not stating your "case" clearly, so maybe using [b][/b] tags inside the url tags can show exactly how you get the error, which would help a lot.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 18 April 2008 :  13:35:40  Show Profile  Send ruirib a Yahoo! Message
Well, I guess I understand now what your issue is, It would seem the code is not trimming whatever gets inside the [url] tags. Without entering into a semantics discussion, I guess you know how to prevent that from ocurring.

Moving this into the bug forum, even if it's a simple thing that doesn't affect that many people - must admit that in my 7 years using Snitz I neved saw it occurring in an actual post).<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 18 April 2008 :  13:38:15  Show Profile  Visit modifichicci's Homepage
(url) http://www.snitz.com (/url)

with [ and ] instead of ( and )

sorry I haven't seen the previous post.
No I dont't know actually how to prevent this, this is only a report of a case happens to me.
<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum

Edited by - modifichicci on 18 April 2008 13:41:53
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 18 April 2008 :  13:41:45  Show Profile  Send ruirib a Yahoo! Message
Yeah, modifichicci, I got it.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 18 April 2008 :  13:44:44  Show Profile  Visit MarkJH's Homepage
Good call, Modifichicci.<

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 20 April 2008 :  08:53:36  Show Profile  Visit HuwR's Homepage
I will take a look at it when I get back from sunning myself in Dubai<
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 30 September 2008 :  03:34:04  Show Profile
Looks like this one was forgotten. Here's the fix:

In "inc_func_common.asp", appx lines 1037-1067, look for this
	'if opening tag and closing tag is found then...
	If (oTagpos2 > 0) And (c1TagPos2 > 0) Then
		'split string at opening tag
		strArray = Split(ReplaceURLs, oTag2, -1, 1)

		ReplaceURLs = ""
		For Counter = 0 To Ubound(strArray)
			'if closing url tag is found in string then...
			If InStr(1, strArray(Counter), c2Tag, 1) > 0 Then
				'split string at closing url tag
				strArray2 = Split(strArray(Counter), c2Tag, -1, 1)
				
				strArray2(0) = replace(strArray2(0), """", " ") ' ## filter out "
				'strArray2(0) = replace(strArray2(0), "&", " ", 1, -1, 1) ' ## filter out &
				'strArray2(0) = replace(strArray2(0), "#", " ", 1, -1, 1) ' ## filter out #
				strArray2(0) = replace(strArray2(0), ";", " ", 1, -1, 1) ' ## filter out ;
				strArray2(0) = replace(strArray2(0), "+", " ", 1, -1, 1) ' ## filter out +
				strArray2(0) = replace(strArray2(0), "(", " ", 1, -1, 1) ' ## filter out (
				strArray2(0) = replace(strArray2(0), ")", " ", 1, -1, 1) ' ## filter out )
				'strArray2(0) = replace(strArray2(0), "[", " ", 1, -1, 1) ' ## filter out [
				'strArray2(0) = replace(strArray2(0), "]", " ", 1, -1, 1) ' ## filter out ]
				'strArray2(0) = replace(strArray2(0), "=", " ", 1, -1, 1) ' ## filter out =
				strArray2(0) = replace(strArray2(0), "*", " ", 1, -1, 1) ' ## filter out *
				strArray2(0) = replace(strArray2(0), "'", " ", 1, -1, 1) ' ## filter out '
				strArray2(0) = replace(strArray2(0), ">", " ", 1, -1, 1) ' ## filter out >
				strArray2(0) = replace(strArray2(0), "<", " ", 1, -1, 1) ' ## filter out <
				strArray2(0) = replace(strArray2(0), vbTab, " ", 1, -1, 1) ' ## filter out Tabs
				strArray2(0) = replace(strArray2(0), "view-source", " ", 1, -1, 1) ' ## filter out view-source
				strArray2(0) = replace(strArray2(0), "javascript", " ", 1, -1, 1) ' ## filter out javascript
				strArray2(0) = replace(strArray2(0), "jscript", " ", 1, -1, 1) ' ## filter out jscript
				strArray2(0) = replace(strArray2(0), "vbscript", " ", 1, -1, 1) ' ## filter out vbscript


At the end of that, add this:
				strArray2(0) = replace(strArray2(0), " ", "", 1, -1, 1) ' ## filter out space


That should fix the issue.<
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 04 October 2008 :  12:00:06  Show Profile  Visit modifichicci's Homepage
That did the trick!

Good solution.<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 08 November 2008 :  15:32:14  Show Profile  Visit modifichicci's Homepage
With this fix there is a problem with link with a space inside, for example in upload mod if the member has an username such as "snitz forum" the files uploaded aren't found because the link search for "snitzforum" instead of "snitz forum".
So the fix has to be

if left(strArray2(0),1) = " " then
strArray2(0) = replace(strArray2(0), " ", "", 1, -1, 1) ' ## filter out space
end if


that could be ugly if a link with a space in the beginning and a space inside is posted.. but this is very rare.. I hope..<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 09 November 2008 :  04:01:27  Show Profile  Visit HuwR's Homepage
that is a problem with the upload mod. all paths that relate to files on a server should not really usespaces anyway, all spaces should be replaced with a %20 in file paths.

so do

strArray2(0) = replace(Trim(strArray2(0)), " ", "%20", 1, -1, 1)

that should fix both<

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 09 November 2008 :  07:49:08  Show Profile  Visit modifichicci's Homepage
perfect!<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07