Welcome, Guest. Please Login or Register    
 
smk mk64 mksc mkdd mkds mkwii mk7 mk8
general   mafia   smk   mk64   mksc   mkdd   mkds   mkw   mk7   mk8   |   problems   |   discord   irc
 
  Home Search Members Login Register
 
Pages: 1
Send Topic Print
Two bugs concerning [url] (Read 265 times)
TvL
Legend
*****
Offline

Long live the
entropy!

7119 days karting
Wassenaar (Netherlands)
Gender: male
Two bugs concerning [url]
06/04/12 at 05:27:45
 
I've noticed two bugs (or hidden features?) concerning the [url]-tag. I'm not sure if these are fixable for you guys, but they'll be good to know about at least.

There seems to be some kind of (malfunctioning) safety feature whenever you post a link to something within this forum; specifically, if the link contains this MB's url followed by a question mark, e.g.:
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338200675
Here is supposed to be a semicolon:  ;

In the sentence above I really put a semicolon, but it got transformed into an ampersand upon posting (or previewing). I've experimented a bit with what happens under what conditions, but the behavior is far too rich. It seems that the next 'special' character after the link is affected: a semicolon turns into an ampersand, an ampersand turns into two ampersands, and I don't know what more.
Sometimes when you hit the preview button, the preview itself is not affected, but the input in the message area (where you type) is! I don't know what triggers this. You get a similar effect if you modify such a post. I have to deal with this every time I modify my original post in the pool topic in General (to add new players), not to mention while making this post.
A single quote (') appears to be an "antidote": if you change the "Here is" in my sentence above into "Here's", the semicolon survives!

The same thing happens with the other use of the [url]-tag. Here's a link which itself contains an ampersand: Send me a PM
I hit preview, and the ampersand in the link gets doubled in the input area. The following semicolon has survived the posting process, but it turns into an ampersand upon previewing or modifying this post:  ;



As for the other bug: as demonstrated above, there are two ways to use the [url]-tag, either with [url]address[/url] or [url=address]text[/url]. It would appear that there's a maximum of three links that you can post, three with each method. I already have one link of either type in this post, here are two more:
http://www.google.com
http://www.google.com
Google
Google
So far, so good. But now if I add one more link, I get a 403 error:

Quote:
Forbidden

You don't have permission to access /cgi-bin/yabb2/YaBB.pl on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I can understand that there would be a limit to the number of links you can post, but instead of a warning you get this 403 error, which is a bug in my view. It took me some experimenting to find that the number of usages of [url] is the (likely) culprit.
Back to top
 
 

Thomas van Leeuwen
MKDD Titan B - MK64 King B - MKDS Expert D

MKDD for noobs

Benoit Boudreau wrote on 10/10/07 at 07:07:11:
Everybody should just listen to Thomas
View Profile WWW   IP Logged
Nosey
Legend
*****
Offline

MKSC best game

5217 sex records
UK
Gender: male
Re: Two bugs concerning [url]
Reply #1 - 06/04/12 at 05:31:56
 
I don't know if this is exactly related, but when I was typing a particularly long thread title a few months ago, when trying to insert a '&' symbol, it deleted some characters from the end of the title (so appeared properly in the textbox I was putting it in, but it was cut-off when viewed from the board), whereas if I replaced it with a '+' symbol, it worked fine.
A relatively unimportant bug, but just wondered why it did that.
Back to top
 
 

View Profile   IP Logged
Fant0m
Myth
*****
Offline

aka Flo

punched 5942 kiddies
Paris / France
Gender: male
Re: Two bugs concerning [url]
Reply #2 - 06/04/12 at 08:07:37
 
Maybe the symbol & has a meaning in html or css programing so that you can't really use it in a title...
I'm not really an expert about this anymore and I can't anyone as I've changed the subject of my studies...
Back to top
 
 
View Profile WWW flo1fullmetal   IP Logged
MrL1193
Legend
*****
Offline

...

5214 sex records
United States
Gender: male
Re: Two bugs concerning [url]
Reply #3 - 06/04/12 at 11:43:27
 
If I recall correctly, the ampersand and semicolon are used in HTML for entering special characters without triggering their HTML functions. For instance, if you wanted to type less than or greater than signs (<, >) without using them in tags, you would have to type them as "&lt;" and "&gt;" respectively in the code to make them appear correctly. Since the ampersand itself has this function, it also needs to be entered in a special way (&amp;). I'm not sure exactly how this is related to the bug you've noticed, though, since you usually wouldn't have to worry about coding the characters manually while posting on the forums. (Notice that my examples of how to type the characters in HTML have not been transformed.)
Back to top
 
 
View Profile   IP Logged
Etch
sage
*****
Offline

3.0+1.0=CUTE

6964 time runner-up

Re: Two bugs concerning [url]
Reply #4 - 06/04/12 at 15:15:10
 
TvL wrote on 06/04/12 at 05:27:45:
So far, so good. But now if I add one more link, I get a 403 error:


I experienced this earlier trying to list multiple links.

Since I was able to do without them, I didn't care but I asked Alex why that happened.

AlexPenev wrote on 04/14/12 at 06:19:34:
No clue  Embarrassed Undecided


Maybe taking a closer look might uncover something, idk.
Back to top
 
 

Karters cannot create anything out of nothingness. Karters cannot accomplish anything without holding onto something. After all, karters pretend to be gods.
View Profile   IP Logged
ALAKTORN
Myth
*****
Offline

Resident weeaboo

6519 days karting
Italy - Viserba
Gender: male
Re: Two bugs concerning [url]
Reply #5 - 06/04/12 at 15:37:39
 
Etch wrote on 06/04/12 at 15:15:10:
AlexPenev wrote on 04/14/12 at 06:19:34:
No clue  Embarrassed Undecided


Maybe taking a closer look might uncover something, idk.

Grin
Back to top
 
 

ALAKTORN wrote on 11/22/17 at 05:24:31:
OH YEAH WHY AM I NOT GLOATING MORE

I PINNED DOWN KF!TIMUR AFTER 10 FUCKING POSTS

LOLLLLLLLLLLLLLLLLLLLL GET FUCKED

My YouTube

MKDS: 31 GODs, 28 Myths, 5 Titans, Hold 9 NoPRB CRs, Hold 11 PRB CRs, Hold 2 NoMT WRs, Held 7 NoPRB WRs and 8 Beta WRs
MKW: Held 2 3lap WRs, many Flaps
MK7: Held a lot of WRs
MK8: Held some WRs
View Profile alaktorn91   IP Logged
TvL
Legend
*****
Offline

Long live the
entropy!

7119 sex records
Wassenaar (Netherlands)
Gender: male
Re: Two bugs concerning [url]
Reply #6 - 06/05/12 at 02:21:40
 
MrL1193 wrote on 06/04/12 at 11:43:27:
If I recall correctly, the ampersand and semicolon are used in HTML for entering special characters without triggering their HTML functions. For instance, if you wanted to type less than or greater than signs (<, >) without using them in tags, you would have to type them as "&lt;" and "&gt;" respectively in the code to make them appear correctly. Since the ampersand itself has this function, it also needs to be entered in a special way (&amp;). I'm not sure exactly how this is related to the bug you've noticed, though, since you usually wouldn't have to worry about coding the characters manually while posting on the forums. (Notice that my examples of how to type the characters in HTML have not been transformed.)

I've looked at the source code of this page. Your (and now also my) "&lt;" does not show up as "<" because the "&" is converted into "&amp;", so it looks like "&amp;lt;". Similarly, the "<" is converted into "&lt;". This is all pretty standard for form submission processing. In php there's even a special command htmlspecialchars() to do this. Of course there are also many custom scripts which convert all our usages of [b] and [url] etc. into their html counterparts.

Something is going very wrong when entering a forum link. Here's my actual entry:
Code:
Nothing going on here: & ;
(url)http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465(/url)
Supposed to be a semicolon: ;
(url)http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465(/url)
Supposed to be an ampersand: & 


(Note: the parentheses around url and /url should of course be '[' and ']', but I can't actually use the [url]-tag cause that would trigger the 403-error!)

The result:

Nothing going on here: & ;
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
Supposed to be a semicolon: ;
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
Supposed to be an ampersand: &

The source code: (I added line breaks for clarity):
Code:
Nothing going on here: &amp; ;<br />
<a href="http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?action=dereferer&url=http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465" target="_blank">http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465</a><br />
Supposed to be a semicolon: &<br />
<a href="http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?action=dereferer&url=http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465" target="_blank">http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465</a><br />
Supposed to be an ampersand: &amp&  



So it looks like the ampersands are first transformed into "&amp;" and then the first instance of a semicolon is transformed into an ampersand, which explains why an ampersand gets doubled, but not much more.




Omg, and this is what the last part of my post looks like in the input area after hitting the preview button:

Code:
The source code: (I added line breaks for clarity):
(code)Nothing going on here: &&& &<&br />&
<&a href="&http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?action=dereferer&&url=http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465"& target="&_blank"&>&http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465<&/a>&<&br />&
Supposed to be a semicolon: &&<&br />&
<&a href="&http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?action=dereferer&&url=http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465"& target="&_blank"&>&http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465<&/a>&<&br />&
Supposed to be an ampersand: &&&& (/code)

So it looks like the ampersands are first transformed into "&&&&"& and then the first instance of a semicolon is transformed into an ampersand, which explains why an ampersand gets doubled, but not much more. 



Wtf?
Back to top
 
 

Thomas van Leeuwen
MKDD Titan B - MK64 King B - MKDS Expert D

MKDD for noobs

Benoit Boudreau wrote on 10/10/07 at 07:07:11:
Everybody should just listen to Thomas
View Profile WWW   IP Logged
shadow
Master Ninja
*****
Offline



7995 costumes worn

Gender: both
Re: Two bugs concerning [url]
Reply #7 - 06/05/12 at 03:00:49
 
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465
http://www.mariokart64.com/cgi-bin/yabb2/YaBB.pl?num=1338816465

One work-around? Don't use url tags at all.
Back to top
 
 
View Profile mk64shadow   IP Logged
Fant0m
Myth
*****
Offline

aka Flo

helped 5942 people
Paris / France
Gender: male
Re: Two bugs concerning [url]
Reply #8 - 06/05/12 at 03:02:49
 
Why did you post 30times the same link?
Back to top
 
 
View Profile WWW flo1fullmetal   IP Logged
TvL
Legend
*****
Offline

Long live the
entropy!

helped 7119 people
Wassenaar (Netherlands)
Gender: male
Re: Two bugs concerning [url]
Reply #9 - 06/05/12 at 04:37:02
 
^ He must really love this topic Roll Eyes

@shadow: cool, I didn't know that was possible. It looks like "*://*.*", where '*' is pretty much any nonempty string, triggers an automatic hyperlink.
Back to top
 
 

Thomas van Leeuwen
MKDD Titan B - MK64 King B - MKDS Expert D

MKDD for noobs

Benoit Boudreau wrote on 10/10/07 at 07:07:11:
Everybody should just listen to Thomas
View Profile WWW   IP Logged
ALAKTORN
Myth
*****
Offline

Resident weeaboo

6519 days karting
Italy - Viserba
Gender: male
Re: Two bugs concerning [url]
Reply #10 - 06/05/12 at 05:14:39
 
what the fuck? people actually put links within URL tags? you’re supposed to do that only if you want to change the linked text…
Back to top
 
 

ALAKTORN wrote on 11/22/17 at 05:24:31:
OH YEAH WHY AM I NOT GLOATING MORE

I PINNED DOWN KF!TIMUR AFTER 10 FUCKING POSTS

LOLLLLLLLLLLLLLLLLLLLL GET FUCKED

My YouTube

MKDS: 31 GODs, 28 Myths, 5 Titans, Hold 9 NoPRB CRs, Hold 11 PRB CRs, Hold 2 NoMT WRs, Held 7 NoPRB WRs and 8 Beta WRs
MKW: Held 2 3lap WRs, many Flaps
MK7: Held a lot of WRs
MK8: Held some WRs
View Profile alaktorn91   IP Logged
ALAKTORN
Myth
*****
Offline

Resident weeaboo

6519 holabolas
Italy - Viserba
Gender: male
Re: Two bugs concerning [url]
Reply #11 - 06/05/12 at 07:11:03
 
this is weird, the WRs topic in the MK7 section still works, but when I tried to edit the MKW TAS one I had to break the URL tags to get it through
Back to top
 
 

ALAKTORN wrote on 11/22/17 at 05:24:31:
OH YEAH WHY AM I NOT GLOATING MORE

I PINNED DOWN KF!TIMUR AFTER 10 FUCKING POSTS

LOLLLLLLLLLLLLLLLLLLLL GET FUCKED

My YouTube

MKDS: 31 GODs, 28 Myths, 5 Titans, Hold 9 NoPRB CRs, Hold 11 PRB CRs, Hold 2 NoMT WRs, Held 7 NoPRB WRs and 8 Beta WRs
MKW: Held 2 3lap WRs, many Flaps
MK7: Held a lot of WRs
MK8: Held some WRs
View Profile alaktorn91   IP Logged
AlexPenev
Master Ninja
*****
Offline

I play in 70Hz

drank 7997 beers

Re: Two bugs concerning [url]
Reply #12 - 06/08/12 at 07:56:26
 
Rumour has it that some of these issues have been fixed. I'm not sure if I believe that rumour, so tell me if you guys run into 404 errors when posting.
Back to top
 
 

chown -R me ~you/base*
View Profile   IP Logged
TvL
Legend
*****
Offline

Long live the
entropy!

7119 days karting
Wassenaar (Netherlands)
Gender: male
Re: Two bugs concerning [url]
Reply #13 - 06/08/12 at 14:39:23
 
Back to top
 
 

Thomas van Leeuwen
MKDD Titan B - MK64 King B - MKDS Expert D

MKDD for noobs

Benoit Boudreau wrote on 10/10/07 at 07:07:11:
Everybody should just listen to Thomas
View Profile WWW   IP Logged
duffjr
Titan
*****
Offline

(S)NES for life!

drank 7486 beers
Los Angeles
Gender: male
Re: Two bugs concerning [url]
Reply #14 - 06/15/12 at 22:01:33
 
I have no idea what this topic is about, and why do all the hyperlinks get redirected from the message board rather than going directly to the linked site?
Back to top
 
 

I don't see how talking to god could possibly be comforting. He's just an overpriced psychologist who never gives you a word of advice. —Michael "Godless" Fried
View Profile WWW duffjr quantumteleport   IP Logged
TvL
Legend
*****
Offline

Long live the
entropy!

7119 sex records
Wassenaar (Netherlands)
Gender: male
Re: Two bugs concerning [url]
Reply #15 - 06/16/12 at 14:20:26
 
Here's a third bug (or a new second one):

It seems that if you put a link in your post, then the next color-tag doesn't work.


This code:

Code:
[url]http://www.google.com[/url]
[color=#ff0000]Not red[/color]
[color=#ff0000]Red[/color] 



gives:

http://www.google.com
Not red
Red


If you look at the source code, you find this:

<span style="color:;anch=ff0000;">Not red</span><br />
<span style="color:#ff0000;">Red</span>
Back to top
 
 

Thomas van Leeuwen
MKDD Titan B - MK64 King B - MKDS Expert D

MKDD for noobs

Benoit Boudreau wrote on 10/10/07 at 07:07:11:
Everybody should just listen to Thomas
View Profile WWW   IP Logged
Mick
Ninja
*****
Offline



6045 days karting
France
Gender: male
Re: Two bugs concerning [url]
Reply #16 - 06/17/12 at 18:30:17
 
^ It's been like that for over a year, easily. Very troublesome that was to make that huge MK7 news topic which a lot of images and color codes... which dates from January 2011.
Back to top
 
 

Youtube (Mario Kart 8 WRs) - Twitter - Twitch

Camster wrote on 02/10/10 at 08:50:34:
A world without kart is just not a world worth living in

Web wrote on 05/13/10 at 11:24:04:
You can't quit kart, it's a mental impossibility.
View Profile   IP Logged
Pages: 1
Send Topic Print