Author |
Topic |
|
modifichicci
Average Member
Italy
787 Posts |
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
modifichicci
Average Member
Italy
787 Posts |
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 18 April 2008 : 12:19:58
|
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 |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 18 April 2008 : 13:35:40
|
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 |
|
|
modifichicci
Average Member
Italy
787 Posts |
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
MarkJH
Senior Member
United Kingdom
1722 Posts |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 20 April 2008 : 08:53:36
|
I will take a look at it when I get back from sunning myself in Dubai< |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 30 September 2008 : 03:34:04
|
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:
That should fix the issue.< |
|
|
modifichicci
Average Member
Italy
787 Posts |
|
modifichicci
Average Member
Italy
787 Posts |
Posted - 08 November 2008 : 15:32:14
|
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
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 |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 09 November 2008 : 04:01:27
|
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 |
|
|
modifichicci
Average Member
Italy
787 Posts |
|
|
Topic |
|
|
|