flat assembler
Message board for the users of flat assembler.

Index > Feedback > Special Characters in URL

Author
Thread Post new topic Reply to topic
YONG



Joined: 16 Mar 2005
Posts: 8000
Location: 22° 15' N | 114° 10' E
YONG
Post 19 Jan 2010, 06:49
View user's profile Send private message Visit poster's website Reply with quote
SFeLi



Joined: 03 Nov 2004
Posts: 140
Location: Severodvinsk, Russia
SFeLi
Post 19 Jan 2010, 07:33
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
YONG



Joined: 16 Mar 2005
Posts: 8000
Location: 22° 15' N | 114° 10' E
YONG
SFeLi, thanks. Razz But this method requires a third-party website. Sad
Post 19 Jan 2010, 08:00
View user's profile Send private message Visit poster's website Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6034
Location: Poland
MHajduk
Post 19 Jan 2010, 08:37
View user's profile Send private message Visit poster's website Reply with quote
YONG



Joined: 16 Mar 2005
Posts: 8000
Location: 22° 15' N | 114° 10' E
YONG
MHajduk, thanks. But how do I know which character(s) is(are) problematic? Trial and error? Rolling Eyes Is there a list of ALL the problematic characters? Rolling Eyes
Post 19 Jan 2010, 09:04
View user's profile Send private message Visit poster's website Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6034
Location: Poland
MHajduk
YONG wrote:
MHajduk, thanks. But how do I know which character(s) is(are) problematic? Trial and error? Rolling Eyes Is there a list of ALL the problematic characters? Rolling Eyes
Hmm... it's hard to say, because I don't know setting details of this board, but I suppose that all characters between SPACE and comma (i.e. with hexadecimal codes from %20 to %2C) are problematic (I haven't tried every of them in URLs though):
Code:
char    hex code
-----------------
SPACE  %20
!        %21
"   %22
#        %23
$        %24
%        %25
&    %26
'       %27
(    %28
)    %29
*        %2A
+        %2B
,        %2C
    
Post 19 Jan 2010, 09:20
View user's profile Send private message Visit poster's website Reply with quote
YONG



Joined: 16 Mar 2005
Posts: 8000
Location: 22° 15' N | 114° 10' E
YONG
Thanks. Razz

But the & character seems OK:

http://www.youtube.com/watch?v=tN1RdgZj2Ts&feature=related

Wink
Post 19 Jan 2010, 09:27
View user's profile Send private message Visit poster's website Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6034
Location: Poland
MHajduk
YONG wrote:
But the & character seems OK:

http://www.youtube.com/watch?v=tN1RdgZj2Ts&feature=related

Wink
Yeah, that works, indeed. Smile
Post 19 Jan 2010, 09:55
View user's profile Send private message Visit poster's website Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1154
ManOfSteel
When I need something really quick, I use this unorthodox method: I go to google.com, and search for something like that: TEST)(+. I use TEST to locate the hex code visually right away.

The result url will be something like: http://www.google.com/search?hl=en&blabla&blabla&blabla&q=TEST%29%28%2B&btnG=Search. So ) is %29, ( is %28, and + is %2B in this example.

Unorthodox as I said...
Post 19 Jan 2010, 10:50
View user's profile Send private message Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6034
Location: Poland
MHajduk
Unorthodox and smart trick. Wink
Post 19 Jan 2010, 10:57
View user's profile Send private message Visit poster's website Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2466
Location: Bucharest, Romania
Borsuc
very smart trick, for long URLs you don't even have to manually replace them anymore. Very Happy
Post 19 Jan 2010, 17:56
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Every time I copy a link from Firefox's address bar it automatically use the %nn form on the clipboard for the special chars. I think this behavior started with version 3.5 or so.
Post 19 Jan 2010, 18:15
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17248
Location: In your JS exploiting you and your system
revolution
YONG wrote:
MHajduk, thanks. But how do I know which character(s) is(are) problematic? Trial and error? Rolling Eyes Is there a list of ALL the problematic characters? Rolling Eyes
Well why don't we test it and see.



[url=http://abc.def/testing!]![/url]
"
#
$
%
&
[url=http://abc.def/testing']'[/url]
(
)
[url=http://abc.def/testing*]*[/url]
+
,
"
;
:
[url=http://abc.def/testing}]}[/url]
[url=http://abc.def/testing{]{[/url]
-
_
=
[url=http://abc.def/testing`]`[/url]
~




No need to guess when we can test it so easily. The answers are above, anything not shown as a link needs to to escaped and hexed.
Post 19 Jan 2010, 18:21
View user's profile Send private message Visit poster's website Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6034
Location: Poland
MHajduk
Thanks for the clarification, revolution. I think it would be a good idea to put this list somewhere into the one of the pinned threads where all (present and future) forumers can take a look at it. Wink
Post 20 Jan 2010, 08:27
View user's profile Send private message Visit poster's website Reply with quote
YONG



Joined: 16 Mar 2005
Posts: 8000
Location: 22° 15' N | 114° 10' E
YONG
revolution, thanks.

Here is the full list of special characters that, when used in URL, need to be escaped and hexed:

!

'

(

)

*

{

}

`
|

\

^


Wink

EDIT: Added three more.


Last edited by YONG on 20 Jan 2010, 09:59; edited 1 time in total
Post 20 Jan 2010, 09:22
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17248
Location: In your JS exploiting you and your system
revolution
<
>
[url=http://abc.def/testing|]|[/url]
[url=http://abc.def/testing\]\[/url]
@
[url=http://abc.def/testing^]^[/url]
Post 20 Jan 2010, 09:40
View user's profile Send private message Visit poster's website Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2466
Location: Bucharest, Romania
Borsuc
Post 21 Jan 2010, 16:59
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.