Ward: Thank you very much! I will give that a try.
-----Original Message----- From: Peacock, Ward [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 10:02 AM To: Spectra-Talk Subject: RE: cfa_broswerupdate.cfm Bob - I don't know exactly what errors you are getting with cfa_browserupdate; but we had a problem with cfa_browswer (which calls cfa_browswerupdate) regarding the parsing of major and minor versions of the visiting browswer. If you look at the cfa_browswer tag around lines 250 to 300 there are two places I believe where the fullversion of the browser is parsed from the agent string that comes in with the web page request. The tag assumes that the version is a.b and then proceeds to extract the major and minor version using listgetat with '.' as a separator. I.e., <cfset fullversion = listgetat(firstelement, 2, sep)> <cfset majorversion = listgetat(fullversion, 1, ".")> <cfset minorversion = listgetat(fullversion, 2, ".")> The problem arises when you get a browser whose version number does not have a period (minor version). This causes the listgetat for the 2nd element in the list to fail. We replaced the last line above to condition on list length as below and this seemed to solve our problems. <cfif listLen(fullversion, ".") gt 1> <cfset minorversion = listgetat(fullversion, 2, ".")> <cfelse> <!--- set to 0 or whatever would be appropriate for a missing minorversion ---> <cfset minorversion = 0> </cfif> This was submitted to spectra community source site as a fix on 4/3/2002; so far it is still under review. Ward Peacock Reichhold eMerging Technologies Voice: 919 990 7691 Email: [EMAIL PROTECTED] Date: Wed, 24 Jul 2002 10:04:42 -0500 From: Bob Connolly <[EMAIL PROTECTED]> Subject: CFA_BROWSERUPDATE.cfm Message-ID: <[EMAIL PROTECTED]> Hello all: It looks like Cold Fusion keeps getting tripped up on our server because of the CFA_BROWSERUPDATE.cfm tag. We are on 1.5. Has anyone seen this before? Does 1.5.1 fix it? I am not sure what is happening. Possibly it is not liking some of the newer browsers out there? Thanks, Bob ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm ------------------------------------------------------------------------------ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
