Announcement: Be excellent to each other.


Caravel Forum : Caravel Boards : The Site : Malformed [url] formats
New Topic New Poll Post Reply
Poster Message
DiMono
Level: Smitemaster
Avatar
Rank Points: 1181
Registered: 09-13-2003
IP: Logged
icon Malformed [url] formats (0)  
The following two entries demonstrate what I'm typing, and what's showing up. I had to replace the [ and ] with { and }} to make it show up properly:

Just the url: www.drod.net

{url=http://www.drod.net/} www.drod.net{/url} = [url=http://www.drod.net/ www.drod.net

{url} www.drod.net{/url} = [url www.drod.net

Found here. Basically, you can't have a url between the url tags as what gets displayed without some other jibberjabber showing up before it.

____________________________
Deploy the... I think it's a yellow button... it's usually flashing... it makes the engines go... WHOOSH!
04-16-2007 at 11:02 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts This architect's holds Quote Reply
Tahnan
Level: Smitemaster
Avatar
Rank Points: 2460
Registered: 11-14-2005
IP: Logged
icon Re: Malformed [url] formats (+1)  
DiMono wrote:
Basically, you can't have a url between the url tags as what gets displayed without some other jibberjabber showing up before it.
You know, I'd call that a feature. Since if you want the URL to show up as the text, you just put it in 'url' tags, you'd only use it if you wanted some other URL to show up as the text. I don't especially want someone putting in a link to http://www.hot-nude-wubba.info/ with the text "forum.caravelgames.com".
04-17-2007 at 02:26 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
gamer_extreme_101
Level: Smitemaster
Avatar
Rank Points: 1939
Registered: 03-07-2004
IP: Logged
icon Re: Malformed [url] formats (0)  
forum.caravelgames.com!

You realize that you asked for it, right? :)

____________________________
--That guy with a million different aliases since he doesn't like this name anymore.
04-17-2007 at 02:39 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts This architect's holds Quote Reply
Jatopian
Level: Smitemaster
Rank Points: 1842
Registered: 07-31-2005
IP: Logged
icon Re: Malformed [url] formats (0)  
While we're on that subject, urls with certain special characters, displayed as themselves, don't work.
gamer_extreme_101 wrote:
forum.caravelgames.com
Hopefully that remains a 404 forever. Wubbas are probably nude anyway.

____________________________
DROD has some really great music.
Make your pressure plates 3.0 style!
DROD architecture idea generator
04-17-2007 at 03:10 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
coppro
Level: Smitemaster
Rank Points: 1309
Registered: 11-24-2005
IP: Logged
icon Re: Malformed [url] formats (0)  
Jatopian wrote:
While we're on that subject, urls with certain special characters, displayed as themselves, don't work.
You're saying that the PHP should uriencode it? Sounds good to me.
04-17-2007 at 03:19 AM
View Profile Show all user's posts Quote Reply
DiMono
Level: Smitemaster
Avatar
Rank Points: 1181
Registered: 09-13-2003
IP: Logged
icon Re: Malformed [url] formats (0)  
Tahnan wrote:
DiMono wrote:
Basically, you can't have a url between the url tags as what gets displayed without some other jibberjabber showing up before it.
You know, I'd call that a feature. Since if you want the URL to show up as the text, you just put it in 'url' tags, you'd only use it if you wanted some other URL to show up as the text. I don't especially want someone putting in a link to http://www.hot-nude-wubba.info/ with the text "forum.caravelgames.com".
But that's exactly my point: you can't put the url in url tags. Here I'll try to to [url]sitename beginning with www[url]:

[url www.dimono.net

And now one beginning with http:

[url http://www.dimono.net

____________________________
Deploy the... I think it's a yellow button... it's usually flashing... it makes the engines go... WHOOSH!
04-17-2007 at 03:38 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts This architect's holds Quote Reply
TripleM
Level: Smitemaster
Rank Points: 1377
Registered: 02-05-2003
IP: Logged
icon Re: Malformed [url] formats (+1)  
By the way, this has probably been the most mentioned site bug that I can remember. I've mentioned it a couple of times myself. I can't remember if there was any official response, but there may be if you have a search. I don't think there was.
04-17-2007 at 04:28 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
Tahnan
Level: Smitemaster
Avatar
Rank Points: 2460
Registered: 11-14-2005
IP: Logged
icon Re: Malformed [url] formats (0)  
gamer_extreme_101 wrote:
forum.caravelgames.com!

You realize that you asked for it, right? :)
Wait, isn't this what DiMono said wouldn't work, i.e.

{url=http://www.drod.net/} www.drod.net{/url} = [url=http://www.drod.net/ www.drod.net

? Now I'm just confused as to what the actual behavior is, what's wrong with it, and why.
04-17-2007 at 04:03 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
Jason
Level: Smitemaster
Rank Points: 1076
Registered: 05-05-2006
IP: Logged
icon Re: Malformed [url] formats (0)  
Tahnan wrote:
gamer_extreme_101 wrote:
forum.caravelgames.com!

You realize that you asked for it, right? :)
Wait, isn't this what DiMono said wouldn't work, i.e.

{url=http://www.drod.net/} www.drod.net{/url} = [url=http://www.drod.net/ www.drod.net

? Now I'm just confused as to what the actual behavior is, what's wrong with it, and why.

gamer_extreme_101 didn't put www. in front of the url so it didn't count.

Example with www. added

[url=http://www.hot-nude-wubbas.info www.forum.caravelgames.com!

____________________________
Play my holds?
04-17-2007 at 05:11 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
coppro
Level: Smitemaster
Rank Points: 1309
Registered: 11-24-2005
IP: Logged
icon Re: Malformed [url] formats (+1)  
It's because the forum parses the URLs before processing URL tags. So www is recognized as a keyword indicating a URL, as is http://. What happens as a result is that you get the funny display. On the other hand, forum.caravelgames.com does not automatically trigger the system (and neither does alt.adjective.noun.verb.verb.verb, thankfully).
04-17-2007 at 05:12 PM
View Profile Show all user's posts Quote Reply
Briareos
Level: Smitemaster
Avatar
Rank Points: 3516
Registered: 08-07-2005
IP: Logged
icon Re: Malformed [url] formats (0)  
coppro wrote:
It's because the forum parses the URLs before processing URL tags. So www is recognized as a keyword indicating a URL, as is http://. What happens as a result is that you get the funny display. On the other hand, forum.caravelgames.com does not automatically trigger the system (and neither does alt.adjective.noun.verb.verb.verb, thankfully).
We wouldn't want to drag the alt.asthmatic.wubba.cough.cough.cough trollcrowd into this forum, would we? :D

np: Dosh - Everybody Cheer Up Song (The Lost Take)

____________________________
"I'm not anti-anything, I'm anti-everything, it fits better." - Sole
R.I.P. Robert Feldhoff (1962-2009) :(
04-17-2007 at 05:28 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
DiMono
Level: Smitemaster
Avatar
Rank Points: 1181
Registered: 09-13-2003
IP: Logged
icon Re: Malformed [url] formats (0)  
coppro wrote:
It's because the forum parses the URLs before processing URL tags. So www is recognized as a keyword indicating a URL, as is http://. What happens as a result is that you get the funny display. On the other hand, forum.caravelgames.com does not automatically trigger the system (and neither does alt.adjective.noun.verb.verb.verb, thankfully).

So what I'm getting from this is that by switching the order, the problem would be solved?

____________________________
Deploy the... I think it's a yellow button... it's usually flashing... it makes the engines go... WHOOSH!
04-18-2007 at 03:29 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts This architect's holds Quote Reply
coppro
Level: Smitemaster
Rank Points: 1309
Registered: 11-24-2005
IP: Logged
icon Re: Malformed [url] formats (0)  
DiMono wrote:
coppro wrote:
It's because the forum parses the URLs before processing URL tags. So www is recognized as a keyword indicating a URL, as is http://. What happens as a result is that you get the funny display. On the other hand, forum.caravelgames.com does not automatically trigger the system (and neither does alt.adjective.noun.verb.verb.verb, thankfully).

So what I'm getting from this is that by switching the order, the problem would be solved?
If the problem happens, you don't need url tags.
04-18-2007 at 03:50 AM
View Profile Show all user's posts Quote Reply
Maurog
Level: Smitemaster
Avatar
Rank Points: 1501
Registered: 09-16-2004
IP: Logged
icon Re: Malformed [url] formats (0)  
If you absolutely have to nest another url between url tags, break the www or http in the nested url with a [b][/b] tag:

[url=http://www.hot-nude-wubbas.info]ht[b][/b]tp://www.forum.caravelgames.com[/url]

http://www.forum.caravelgames.com

However, this is borderline phishing and really misguiding the user at the very least. Why would you do that?

____________________________
Slay the living! Raise the dead!
Paint the sky in crimson red!
04-18-2007 at 09:00 AM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
DiMono
Level: Smitemaster
Avatar
Rank Points: 1181
Registered: 09-13-2003
IP: Logged
icon Re: Malformed [url] formats (0)  
I wouldn't. What I wanted to do was have ww.sitename.com as the displayed text, and ww.sitename.com/ as the link url, so my server wouldn't have to do a redirect from .com to .com/ but the forum members wouldn't have to see ww.sitename.com/ because that trailing slash looks funny if you don't know what it's there for.

____________________________
Deploy the... I think it's a yellow button... it's usually flashing... it makes the engines go... WHOOSH!
04-19-2007 at 03:09 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts This architect's holds Quote Reply
Briareos
Level: Smitemaster
Avatar
Rank Points: 3516
Registered: 08-07-2005
IP: Logged
icon Re: Malformed [url] formats (+2)  
DiMono wrote:
I wouldn't. What I wanted to do was have ww.sitename.com as the displayed text, and ww.sitename.com/ as the link url, so my server wouldn't have to do a redirect from .com to .com/ but the forum members wouldn't have to see ww.sitename.com/ because that trailing slash looks funny if you don't know what it's there for.
Ummm... actually, www.example.com and www.example.com/ are one and the same; both times a TCP connection to www.example.com port 80 is opened and a "GET / HTTP/1.x" is sent, since you absolutely have to send a path with a GET request.

Those redirects you probably meant only happen on subdirectories so relative links in their index page work.

____________________________
"I'm not anti-anything, I'm anti-everything, it fits better." - Sole
R.I.P. Robert Feldhoff (1962-2009) :(
04-19-2007 at 08:48 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
DiMono
Level: Smitemaster
Avatar
Rank Points: 1181
Registered: 09-13-2003
IP: Logged
icon Re: Malformed [url] formats (0)  
Briareos wrote:
DiMono wrote:
I wouldn't. What I wanted to do was have ww.sitename.com as the displayed text, and ww.sitename.com/ as the link url, so my server wouldn't have to do a redirect from .com to .com/ but the forum members wouldn't have to see ww.sitename.com/ because that trailing slash looks funny if you don't know what it's there for.
Ummm... actually, www.example.com and www.example.com/ are one and the same; both times a TCP connection to www.example.com port 80 is opened and a "GET / HTTP/1.x" is sent, since you absolutely have to send a path with a GET request.

Those redirects you probably meant only happen on subdirectories so relative links in their index page work.
As far as I know, and I seem to recall links on this forum being changed because of it, if you try to go to www.example.com the server redirects you to www.example.com/, because that's where the site's home page is located. That's why you will never see in your URL bar www.example.com without the / at the end.

____________________________
Deploy the... I think it's a yellow button... it's usually flashing... it makes the engines go... WHOOSH!
04-19-2007 at 04:52 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts This architect's holds Quote Reply
Schik
Level: Legendary Smitemaster
Avatar
Rank Points: 5416
Registered: 02-04-2003
IP: Logged
icon Re: Malformed [url] formats (+1)  
DiMono wrote:
As far as I know, and I seem to recall links on this forum being changed because of it, if you try to go to www.example.com the server redirects you to www.example.com/, because that's where the site's home page is located. That's why you will never see in your URL bar www.example.com without the / at the end.
We did change this on the forum back when we were on drod.net/forum - not on the root. I believe Briareos is quite correct, though we're straying from the topic.

Yeah, it's a bug. real url[/url] dolesn't work. I haven't had a lot of drive to go fix it, because it can be avoided really easily. This one goes in the "when I'm really bored and don't want to work on something more useful" file.

____________________________
The greatness of a nation and its moral progress can be judged by the way it treats its animals.
--Mahatma Gandhi

[Last edited by Schik at 04-19-2007 05:27 PM]
04-19-2007 at 05:26 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores Quote Reply
Briareos
Level: Smitemaster
Avatar
Rank Points: 3516
Registered: 08-07-2005
IP: Logged
icon Re: Malformed [url] formats (+2)  
DiMono wrote:
As far as I know, and I seem to recall links on this forum being changed because of it, if you try to go to www.example.com the server redirects you to www.example.com/, because that's where the site's home page is located. That's why you will never see in your URL bar www.example.com without the / at the end.
(Straying indeed a bit more off-topic, since Schik posted while I was typing this and I really don't want to throw out what I typed already...)

Ummm... the change in the URL bar is caused by your browser; it'll add the protocol http://) and a single slash as the path if it's missing...

Let me just wireshark what happens when I type "slashdot.org" into Firefox' URL bar:

GET / HTTP/1.1
Host: slashdot.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.11)
            Gecko/20070312 Firefox/1.5.0.11
...

HTTP/1.1 200 OK
Date: Thu, 19 Apr 2007 16:37:53 GMT
Server: Apache/1.3.37 (Unix) mod_perl/1.29
SLASH_LOG_DATA: mainpage
X-Powered-By: Slash 2.005000154
X-Bender: But-- those girls don't wear cases! You can see their bare circuits!
Cache-Control: no-cache
Pragma: no-cache
Vary: User-Agent,Accept-Encoding
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Content-Encoding: gzip
...


See? No redirect, but my URL bar reads " http://slashdot.org/ " anyway...

If you don't specify any path in your URL (not even /), your browser will add the default "/" one.

On the other hand, if you specify a directory on a server without a trailing slash, the server usually sends a redirect (unless you turn that off) since relative links in HTML are based on the path up to the last slash, which usually means cutting off the current page's name.

But if the last part is that of the current directory and you chop it off, relative links are falsely based on the current directory's parent directory, thus the redirect.

Hey, if you still don't believe me, install Wireshark and experiment with it... :D

np: Radiohead - 15 Step (Live at Bayside Embarcadero, San Diego CA (27.06.2006))

____________________________
"I'm not anti-anything, I'm anti-everything, it fits better." - Sole
R.I.P. Robert Feldhoff (1962-2009) :(

[Last edited by Briareos at 04-20-2007 08:55 AM : Linewrap for teh readability win!]
04-19-2007 at 05:49 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
DiMono
Level: Smitemaster
Avatar
Rank Points: 1181
Registered: 09-13-2003
IP: Logged
icon Re: Malformed [url] formats (0)  
Ah, so at the root level it's a browser thing, not a server thing. Neat.

____________________________
Deploy the... I think it's a yellow button... it's usually flashing... it makes the engines go... WHOOSH!
04-20-2007 at 03:56 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : Caravel Boards : The Site : Malformed [url] formats
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.