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)
 Removing user URL image http chkstring
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

geno
Starting Member

Bhutan
10 Posts

Posted - 03 January 2008 :  08:45:10  Show Profile
Hi can anyone help me please.

I am adding a user image upload script but i really need to REMOVE the HTTP chkstring function on this, I need it to all function in just the same way, just without the HTTP validation. My user images path will not include the http path.

Everything is working perfectly BUT for this.

Where is the chkstring fuction for this, i just cannot find it anywhere and what should i remove.

Can anyone point me in the right direction please.

I am using ver 3.4.06 with a mysql db

quote:
why did you not post this at Snitz?


The main reasons why this was not posted at Snitz and why I might not post the bugs I find
directly at Snitz anymore are the ways "ruirib and HuwR" take pleasure to criticize just about
anything I post and seem to resent the fact that I want to improve and correct Snitz which, I agree,
serve as the original base for my own Forum.

These are some of the actions I find unacceptable:
ruirib and HuwR take fun to Delete some of my topics, of my replies, locked or move my topic.

A topic posted last week from me to Davio in "Help: MOD Implementation" Forum as been deleted.

Two replies in my topic as been deleted about a bug on snitz topic page:
http://forum.snitz.com/forum/topic.asp?whichpage=5.96&TOPIC_ID=44136#372029

A Fix to texanman as been deleted (first reply to texanman subject):
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=66162

One of my Multi-Language Topic on Snitz has disappeared last night
Multi-Language and Multi-Language Skin3D
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=40765

etc...

3 times I changed my password and the day after the same game start.

Since I send to HuwR a donation of $200 on December 22, 2006
this guy HuwR has never stop to pick on every thing I post on the Snitz Forum.

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 January 2008 :  09:44:25  Show Profile  Send ruirib a Yahoo! Message
ChkString is located in inc_func_common.asp. You should know that by messing with it, you can be exposing your forum and your forum users to security risks.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 03 January 2008 :  10:02:48  Show Profile  Visit modifichicci's Homepage
What script are you trying to use? You can modify it to point to your upload dir.

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

geno
Starting Member

Bhutan
10 Posts

Posted - 03 January 2008 :  10:05:31  Show Profile
Thank u so much for getting back to me so fast Ruirib,

I can see it now and yes I see that the url chkstring is global and not just for the image http, i think i will have to attack this problem a different way.

Oh well 1 idea down, 0 to go right now.

thank you so much again.

quote:
why did you not post this at Snitz?


The main reasons why this was not posted at Snitz and why I might not post the bugs I find
directly at Snitz anymore are the ways "ruirib and HuwR" take pleasure to criticize just about
anything I post and seem to resent the fact that I want to improve and correct Snitz which, I agree,
serve as the original base for my own Forum.

These are some of the actions I find unacceptable:
ruirib and HuwR take fun to Delete some of my topics, of my replies, locked or move my topic.

A topic posted last week from me to Davio in "Help: MOD Implementation" Forum as been deleted.

Two replies in my topic as been deleted about a bug on snitz topic page:
http://forum.snitz.com/forum/topic.asp?whichpage=5.96&TOPIC_ID=44136#372029

A Fix to texanman as been deleted (first reply to texanman subject):
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=66162

One of my Multi-Language Topic on Snitz has disappeared last night
Multi-Language and Multi-Language Skin3D
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=40765

etc...

3 times I changed my password and the day after the same game start.

Since I send to HuwR a donation of $200 on December 22, 2006
this guy HuwR has never stop to pick on every thing I post on the Snitz Forum.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 January 2008 :  10:08:05  Show Profile  Send ruirib a Yahoo! Message
Maybe if you tell us what your getting now and what you wanted to get, we could be of more help.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

geno
Starting Member

Bhutan
10 Posts

Posted - 03 January 2008 :  10:17:50  Show Profile
quote:
Originally posted by modifichicci

What script are you trying to use? You can modify it to point to your upload dir.



The script is mine and it is pointing to my upload dir, that is all working fine.

My problem is that my script renames image files to the USER_ID. I can add in the path also but I can not rename an image file with an http:// prefix it would be an illegal file name.

So what is happening is a user logs in and uploads their image, that writes to the DB the dir path and file name. and it renames the image.

all fine so far, BUT when a user enters their profile area and does any update, snitz then sends back the INVALID photo url message because there is no http://.

I think I will have to rewrite my upload componant to rename the image file but just add the http:// to the db.

I just didnt want to have to do that though.


quote:
why did you not post this at Snitz?


The main reasons why this was not posted at Snitz and why I might not post the bugs I find
directly at Snitz anymore are the ways "ruirib and HuwR" take pleasure to criticize just about
anything I post and seem to resent the fact that I want to improve and correct Snitz which, I agree,
serve as the original base for my own Forum.

These are some of the actions I find unacceptable:
ruirib and HuwR take fun to Delete some of my topics, of my replies, locked or move my topic.

A topic posted last week from me to Davio in "Help: MOD Implementation" Forum as been deleted.

Two replies in my topic as been deleted about a bug on snitz topic page:
http://forum.snitz.com/forum/topic.asp?whichpage=5.96&TOPIC_ID=44136#372029

A Fix to texanman as been deleted (first reply to texanman subject):
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=66162

One of my Multi-Language Topic on Snitz has disappeared last night
Multi-Language and Multi-Language Skin3D
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=40765

etc...

3 times I changed my password and the day after the same game start.

Since I send to HuwR a donation of $200 on December 22, 2006
this guy HuwR has never stop to pick on every thing I post on the Snitz Forum.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 03 January 2008 :  10:18:02  Show Profile  Visit HuwR's Homepage
No check is made as to whether the inputted photourl starts with http:// certainly not by the chkstring function anyway.

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 03 January 2008 :  10:21:20  Show Profile  Visit HuwR's Homepage
the INVALID photo error is returned by the following code in pop_profile.asp

		if not IsValidURL(trim(Request.Form("Photo_URL"))) then
			Err_Msg = Err_Msg & "<li>Photo URL: Invalid URL" & strURLError & "</li>"
		end if

You should just be able to remove that check
Go to Top of Page

geno
Starting Member

Bhutan
10 Posts

Posted - 03 January 2008 :  10:22:50  Show Profile
quote:
Originally posted by HuwR

No check is made as to whether the inputted photourl starts with http:// certainly not by the chkstring function anyway.





Thank you Huwr for coming in on this too, but when I write a file name to the DB without a full http:// path, when i go into profile edit and do any update I recieve an invalid image URL error, it states "it must begin with a http:// prefix

So if it makes no checks, what is happening?

quote:
why did you not post this at Snitz?


The main reasons why this was not posted at Snitz and why I might not post the bugs I find
directly at Snitz anymore are the ways "ruirib and HuwR" take pleasure to criticize just about
anything I post and seem to resent the fact that I want to improve and correct Snitz which, I agree,
serve as the original base for my own Forum.

These are some of the actions I find unacceptable:
ruirib and HuwR take fun to Delete some of my topics, of my replies, locked or move my topic.

A topic posted last week from me to Davio in "Help: MOD Implementation" Forum as been deleted.

Two replies in my topic as been deleted about a bug on snitz topic page:
http://forum.snitz.com/forum/topic.asp?whichpage=5.96&TOPIC_ID=44136#372029

A Fix to texanman as been deleted (first reply to texanman subject):
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=66162

One of my Multi-Language Topic on Snitz has disappeared last night
Multi-Language and Multi-Language Skin3D
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=40765

etc...

3 times I changed my password and the day after the same game start.

Since I send to HuwR a donation of $200 on December 22, 2006
this guy HuwR has never stop to pick on every thing I post on the Snitz Forum.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 03 January 2008 :  10:23:32  Show Profile  Visit HuwR's Homepage
see my post just above yours
Go to Top of Page

geno
Starting Member

Bhutan
10 Posts

Posted - 03 January 2008 :  10:24:45  Show Profile
Huwr ... so sorry .. you beat me on my last post to you .... thats what i needed ... BLESS YOUR KIND HEART .... and thank you all ....

quote:
why did you not post this at Snitz?


The main reasons why this was not posted at Snitz and why I might not post the bugs I find
directly at Snitz anymore are the ways "ruirib and HuwR" take pleasure to criticize just about
anything I post and seem to resent the fact that I want to improve and correct Snitz which, I agree,
serve as the original base for my own Forum.

These are some of the actions I find unacceptable:
ruirib and HuwR take fun to Delete some of my topics, of my replies, locked or move my topic.

A topic posted last week from me to Davio in "Help: MOD Implementation" Forum as been deleted.

Two replies in my topic as been deleted about a bug on snitz topic page:
http://forum.snitz.com/forum/topic.asp?whichpage=5.96&TOPIC_ID=44136#372029

A Fix to texanman as been deleted (first reply to texanman subject):
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=66162

One of my Multi-Language Topic on Snitz has disappeared last night
Multi-Language and Multi-Language Skin3D
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=40765

etc...

3 times I changed my password and the day after the same game start.

Since I send to HuwR a donation of $200 on December 22, 2006
this guy HuwR has never stop to pick on every thing I post on the Snitz Forum.
Go to Top of Page

geno
Starting Member

Bhutan
10 Posts

Posted - 03 January 2008 :  10:26:01  Show Profile
damm man ... I just can not beat you .... hehehe .... thanks again ...

quote:
why did you not post this at Snitz?


The main reasons why this was not posted at Snitz and why I might not post the bugs I find
directly at Snitz anymore are the ways "ruirib and HuwR" take pleasure to criticize just about
anything I post and seem to resent the fact that I want to improve and correct Snitz which, I agree,
serve as the original base for my own Forum.

These are some of the actions I find unacceptable:
ruirib and HuwR take fun to Delete some of my topics, of my replies, locked or move my topic.

A topic posted last week from me to Davio in "Help: MOD Implementation" Forum as been deleted.

Two replies in my topic as been deleted about a bug on snitz topic page:
http://forum.snitz.com/forum/topic.asp?whichpage=5.96&TOPIC_ID=44136#372029

A Fix to texanman as been deleted (first reply to texanman subject):
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=66162

One of my Multi-Language Topic on Snitz has disappeared last night
Multi-Language and Multi-Language Skin3D
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=40765

etc...

3 times I changed my password and the day after the same game start.

Since I send to HuwR a donation of $200 on December 22, 2006
this guy HuwR has never stop to pick on every thing I post on the Snitz Forum.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 January 2008 :  10:26:41  Show Profile  Send ruirib a Yahoo! Message
What you need to do is check pop_profile.asp, that's where data input into the user profile is validated. This is the code that does it:

                if not IsValidURL(trim(Request.Form("Photo_URL"))) then
			Err_Msg = Err_Msg & "<li>Photo URL: Invalid URL" & strURLError & "</li>"
		end if

Search for it and change it as you need. IsValidURL is used for other validation stuff, so don't change it, maybe copy it, change the name and whatever else may be needed and use it just to validate the photo URL.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 January 2008 :  10:27:14  Show Profile  Send ruirib a Yahoo! Message
Well I got a bit late on this one...


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

geno
Starting Member

Bhutan
10 Posts

Posted - 03 January 2008 :  10:30:12  Show Profile
HAHAHAH gentlemen please ... don;t fight over little old me ... problem is solved, all is working as it should .. and once again thank you. ALL OF YOU. hehe

quote:
why did you not post this at Snitz?


The main reasons why this was not posted at Snitz and why I might not post the bugs I find
directly at Snitz anymore are the ways "ruirib and HuwR" take pleasure to criticize just about
anything I post and seem to resent the fact that I want to improve and correct Snitz which, I agree,
serve as the original base for my own Forum.

These are some of the actions I find unacceptable:
ruirib and HuwR take fun to Delete some of my topics, of my replies, locked or move my topic.

A topic posted last week from me to Davio in "Help: MOD Implementation" Forum as been deleted.

Two replies in my topic as been deleted about a bug on snitz topic page:
http://forum.snitz.com/forum/topic.asp?whichpage=5.96&TOPIC_ID=44136#372029

A Fix to texanman as been deleted (first reply to texanman subject):
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=66162

One of my Multi-Language Topic on Snitz has disappeared last night
Multi-Language and Multi-Language Skin3D
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=40765

etc...

3 times I changed my password and the day after the same game start.

Since I send to HuwR a donation of $200 on December 22, 2006
this guy HuwR has never stop to pick on every thing I post on the Snitz Forum.
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 3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07