For those running Farcry (6.0+) on Railo and are applying BER patches, be
warned that Farcry stop working after 3.1.2.014
I have logged a bug    https://jira.jboss.org/browse/RAILO-882



If you cant wait that long and are happy to hack the core ....

\farcry\core\packages\farcry\*UrlUtility.cfc*

<!--- {{{ public getURLParamStruct(address) --->
<cffunction name="getURLParamStruct" access="public" output="false"
returntype="struct"
  hint="takes an address with possible url params
(?param=value&param2=value...) and returns
  a struct with param names as keys and param values as the key values.">

  <cfargument name="address" type="string" required="true"
    hint="address to get url struct from (must have the leading ?
somewhere)">

  <cfset var urlStruct = StructNew()>
  <cfset var params = GetToken(arguments.address, 2, "?")>
  <cfset var urlParamName = "">
  <cfset var urlParamValue = "">

  <cfif len(arguments.address) and (not len(params)) and
Left(arguments.address, 1) is "?">
    <cfif (Len(arguments.address) - 1) gt 0>
      <cfset params = Right(arguments.address, Len(arguments.address) - 1)>
    </cfif>
  </cfif>

  <cfif Len(params)>
    <cfloop index="param" list="#params#" delimiters="&">
      <cfscript>
        *urlParamName *= GetToken(param, 1, "=");
        *urlParamValue *= GetToken(param, 2, "=");

        if ( Len(urlParamName) ) {
          if ( Len(urlParamValue) ) {
            //urlStruct[paramName] = paramValue;
            // I'm modifying the previous line so that url-encoded values
are automatically
            // decoded (seems like that's what would be expected of this
component).
            // -Tyler Ham ([email protected]), 2005-08-17
            urlStruct[urlParamName] = URLDecode(urlParamValue);
          } else {
            urlStruct[urlParamName] = "";
          }
        } else {
          urlStruct[param] = "";
        }
      </cfscript>
    </cfloop>
  </cfif>

  <cfreturn urlStruct>
</cffunction>

-- 

*AJ Mercer*
<webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org
community="Open" /> <http://webonix.org>
http://twitter.com/webonix

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to