Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 URLs don't like |
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

bud_dadude
Starting Member

Australia
21 Posts

Posted - 07 April 2009 :  06:56:37  Show Profile  Visit bud_dadude's Homepage
Hi all,
Help please. URLs with the | character in them aren't working properly. Here's an example - http://mrtwo.mine.nu/topic.asp?TOPIC_ID=15781

Any ideas?

bud_dadude
Starting Member

Australia
21 Posts

Posted - 07 April 2009 :  07:30:23  Show Profile  Visit bud_dadude's Homepage
I figured it out

:-)
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 07 April 2009 :  08:03:30  Show Profile  Visit HuwR's Homepage
a | is considered to be an 'unsafe' character for a url and should therefore be either encoded or not used at all

extract from RFC

Unsafe:

Characters can be unsafe for a number of reasons. The space
character is unsafe because significant spaces may disappear and
insignificant spaces may be introduced when URLs are transcribed or
typeset or subjected to the treatment of word-processing programs.
The characters "<" and ">" are unsafe because they are used as the
delimiters around URLs in free text; the quote mark (""") is used to
delimit URLs in some systems. The character "#" is unsafe and should
always be encoded because it is used in World Wide Web and in other
systems to delimit a URL from a fragment/anchor identifier that might
follow it. The character "%" is unsafe because it is used for
encodings of other characters. Other characters are unsafe because
gateways and other transport agents are known to sometimes modify
such characters. These characters are "{", "}", "|", "\", "^", "~",
"[", "]", and "`".

All unsafe characters must always be encoded within a URL. For
example, the character "#" must be encoded within URLs even in
systems that do not normally deal with fragment or anchor
identifiers, so that if the URL is copied into another system that
does use them, it will not be necessary to change the URL encoding.
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 07 April 2009 :  10:19:39  Show Profile  Visit bobby131313's Homepage
quote:
a | is considered to be an 'unsafe' character for a url and should therefore be either encoded or not used at all


And it's absolutely appalling that many sites that are starting to use them often, among other crazy characters. They're getting so caught up in SEF urls that they're forgetting about basics. eBay and Amazon are biggest offenders and it's tickin' me off. [/rant]

Switch the order of your title tags
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 07 April 2009 :  14:29:44  Show Profile  Visit SiSL's Homepage
Single:
http://en.wikipedia.org/wiki/Bleach_(manga)

Inside URL tags
http://en.wikipedia.org/wiki/Bleach_ manga

Inside URL tags with title:
clicky

How about this? :) All ways available can not give real URL link. en.wikipedia.org/wiki/Bleach_(manga) <- with http as prefix

That's pretty common used URL format at Wiki

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod

Edited by - SiSL on 07 April 2009 14:33:35
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 07 April 2009 :  14:44:07  Show Profile  Visit HuwR's Homepage
what about it?

() are removed for security reasons to stop people injecting javascript function calls into urls, if you want to change it on your forum then feel free, but they will not be changed here or in the base code.
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 07 April 2009 :  15:38:32  Show Profile  Visit SiSL's Homepage
quote:
Originally posted by HuwR

what about it?

() are removed for security reasons to stop people injecting javascript function calls into urls, if you want to change it on your forum then feel free, but they will not be changed here or in the base code.



Forgive my ignorance but is there a possibility to call a functional javascript and vbscript without the tag of "javascript:" etc. removed already in the code as long as you don't allow HTML?

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod

Edited by - SiSL on 07 April 2009 15:39:23
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 07 April 2009 :  17:08:16  Show Profile  Visit AnonJr's Homepage
You can technically add functional code to the URL reguardless of allowing HTML or BBCode (assuming you didn't disable the forum's code to automatically search for URLs) as its part of the spec. Its harder, but you can do it even if the "JavaScript:" part is filtered out.
Go to Top of Page

SiSL
Average Member

Turkey
671 Posts

Posted - 07 April 2009 :  17:37:29  Show Profile  Visit SiSL's Homepage
Was just curious, can't imagine how alert('test') for instance in URL form without "javascript:" prefix and ofcourse naturally "onclick" and other handlers could be working, that's all all... Current Snitz code is already filtering out many things that would not remotely allow such thing... It's just like apostrophes in URL's and majority process. In the end, scripts can be called on any linked page as well.

Ofcourse, I am allowing it for my forum. Wikipedia is a great resource not to miss URL's on. They are just as valid URL's.

and HuWR, relax a bit man, not everyone is Image, nor everyone asks questions to flame on...

CHIP Online Forum

My Mods
Select All Code | Fix a vulnerability for your private messages | Avatar Categories W/ Avatar Gallery Mod | Complaint Manager
Admin Level Revisited | Merge Forums | No More Nested Quotes Mod

Edited by - SiSL on 07 April 2009 17:41:28
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 08 April 2009 :  01:47:38  Show Profile  Visit HuwR's Homepage
I am perfectly relaxed, it is you who seems hell bent on pulling holes in why we do stuff,we don't just filter things out for the hell of it, it is to stop your forums from being hacked, if you want to allow it then don't come running to us when people get their cookies stolen by unscrupulous posters.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.37 seconds. Powered By: Snitz Forums 2000 Version 3.4.07