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)
 Mar 13 Security Fix versus EmailField func
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

gelliott
Junior Member

USA
268 Posts

Posted - 18 April 2007 :  20:29:58  Show Profile
In incorporating the Mar 13 security fix posted here, it seems to me this fix would have been better applied as a replacement for the EmailField function in the inc_func_member.asp file, would it not? Then you solve the issues for every email field across the forum. Or am I missing something?

* The optimist says the cup is half full. The pessimist says it's half empty. But the engineer knows the truth - the cup's design is incorrectly sized.

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 18 April 2007 :  21:23:21  Show Profile  Send ruirib a Yahoo! Message
Indeed, this is how I actually implemented it:

function EmailField(fTestString) 
	set regEx = New RegExp
	regEx.Global = true
	regEx.IgnoreCase = true
	regEx.Pattern = "^[A-Z0-9._%-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,4}$"

	retVal = regEx.Test(fTestString)

	set regEx = nothing

	if Not retVal Then
           EmailField = 0
	Else
           EmailField = 1
	end if
end function 



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

gelliott
Junior Member

USA
268 Posts

Posted - 18 April 2007 :  21:48:16  Show Profile
OK, thanks ruirib. Just making sure I wasn't forgetting something...

* The optimist says the cup is half full. The pessimist says it's half empty. But the engineer knows the truth - the cup's design is incorrectly sized.
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.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07