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)
 Long photo URLs don't work correctly
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Kent
Junior Member

United States
193 Posts

Posted - 05 December 2002 :  12:29:59  Show Profile
Here's an example of how a long photo URL is handled a bit differently. It shows up as an unbroken link when you just paste it in as a URL without the {URL}{/URL} tags.

http://image.photoloft.com/opx-bin/OpxFIDISA.dll?s=cano&src=/PhotoLoft/Asset20/2002/12/05/10206/10206035_0_9487.fpx,0,0,1,1,512,384,FFFFFF

It also shows up as an unbroken link when you put the {URL}{/URL} tags around it:

http://image.photoloft.com/opx-bin/OpxFIDISA.dll?s=cano&src=/PhotoLoft/Asset20/2002/12/05/10206/10206035_0_9487.fpx,0,0,1,1,512,384,FFFFFF

But, when you use {img}{/img} tags, it breaks the URL and doesn't display:



Anyone have any suggestions?

Kent

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 05 December 2002 :  12:39:17  Show Profile  Visit HuwR's Homepage
it is because it has = and & in it they are removed for security reasons, it has nothing to do with the length.
Go to Top of Page

Kent
Junior Member

United States
193 Posts

Posted - 05 December 2002 :  13:00:53  Show Profile
So the & and = are "safe" when used in a link URL, but not a photo URL....
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 05 December 2002 :  13:04:22  Show Profile  Visit HuwR's Homepage
yes, I can see what the link says and work out what it does, but you can hide javascript code behind an Image that users can't see, that is why they are not allowed in the image
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 05 December 2002 :  13:06:41  Show Profile  Visit HuwR's Homepage
There are many others that are not allowed, try looking ad the image validation routines

'## Added to exclude Javascript and other potentially hazardous characters
strUrlText = replace(strUrlText, "&", " ", 1, -1, 1) ' ## filter out &
strUrlText = replace(strUrlText, "#", " ", 1, -1, 1) ' ## filter out #
strUrlText = replace(strUrlText, ";", " ", 1, -1, 1) ' ## filter out ;
strUrlText = replace(strUrlText, "+", " ", 1, -1, 1) ' ## filter out +
strUrlText = replace(strUrlText, "(", " ", 1, -1, 1) ' ## filter out (
strUrlText = replace(strUrlText, ")", " ", 1, -1, 1) ' ## filter out )
strUrlText = replace(strUrlText, "[", " ", 1, -1, 1) ' ## filter out [
strUrlText = replace(strUrlText, "]", " ", 1, -1, 1) ' ## filter out ]
strUrlText = replace(strUrlText, "=", " ", 1, -1, 1) ' ## filter out =
strUrlText = replace(strUrlText, "*", " ", 1, -1, 1) ' ## filter out *
strUrlText = replace(strUrlText, "'", " ", 1, -1, 1) ' ## filter out '
strUrlText = replace(strUrlText, "javascript", " ", 1, -1, 1) ' ## filter out javascript
strUrlText = replace(strUrlText, "jscript", " ", 1, -1, 1) ' ## filter out jscript
strUrlText = replace(strUrlText, "vbscript", " ", 1, -1, 1) ' ## filter out vbscript
strUrlText = replace(strUrlText, "mailto", " ", 1, -1, 1) ' ## filter out mailto
'## End Added
Go to Top of Page

Kent
Junior Member

United States
193 Posts

Posted - 05 December 2002 :  13:36:25  Show Profile
Thanks, Huw. I was just trying to understand -- not questioning why it was done.

I didn't realize the additional risk that an image posed. Great explanation!
Go to Top of Page

night-red
Starting Member

Canada
8 Posts

Posted - 14 December 2002 :  17:54:36  Show Profile  Visit night-red's Homepage  Send night-red an ICQ Message
I did some creative editing on it.
The images now work for me but i have not opend my sleft for an attack though it

- Night-Red
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.41 seconds. Powered By: Snitz Forums 2000 Version 3.4.07