Author |
Topic  |
|
aspwiz
Junior Member
 
250 Posts |
Posted - 15 October 2004 : 06:22:41
|
There is a bug with Forum code URL handling somewhere, but I cannot put my finger on whats wrong....
I have a post on my forum, which I have duplicated here:- http://forum.snitz.com/forum/topic.asp?TOPIC_ID=55120#300533
As you can see, the first few lines have been made a link.... for no apparent reason.
Anyway ideas?< |
Edited by - aspwiz on 15 October 2004 06:23:43 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 15 October 2004 : 07:05:16
|
It's because of the "] that you had here:
_SERVER["PHP_SELF"]
I changed it to:
_SERVER["PHP_SELF'']
and it looks fine now.< |
 |
|
aspwiz
Junior Member
 
250 Posts |
Posted - 15 October 2004 : 14:51:25
|
isnt this a bug?
Also, how do i get that char you typed?< |
 |
|
Da_Stimulator
DEV Team Forum Moderator
    
USA
3373 Posts |
Posted - 15 October 2004 : 17:50:27
|
thats 2 single quotes.... ' ' together= ''< |
-Stim |
 |
|
XanderStudios
Starting Member
USA
1 Posts |
Posted - 22 October 2004 : 18:54:35
|
There is a bug in the url handling code. If you have mixed [ url = " someurl " ] and plain [ url ] someurl [ / url ], the code messes up the entire html. The If statement in the code incorrectly checks to see if "[ url ]" is not in the html even if there is a close tag (" [ / url ] ") before the next opening url code. I have fixed it and here is the code snippet:
Function ReplaceURLs(ByVal strToFormat) '... All Dim tags in original file here Dim iCloseTagPos, iCloseUrlTagPos '... Go down 45 lines to offending if statement
'if the closing url tag is found in the string and '[URL] is not found in the string Or [URL] is found after the closing tag then...
iCloseTagPos = InStr(1, strArray2(1), c2Tag, 1) iCloseUrlTagPos = InStr(1, UCase(strArray2(1)), "[URL]", 1) If iCloseTagPos > 0 And _ (iCloseUrlTagPos = 0 Or iCloseUrlTagPos > iCloseTagPos) Then
---------<-<<@ Cheers!
Brent< |
 |
|
|
Topic  |
|