What is the security issue exactly?

Russ Michaels
www.michaels.me.uk
cfmldeveloper.com
cflive.net
cfsearch.com
On 20 May 2014 03:19, "Matthew Smith" <[email protected]> wrote:

>
> /Had it working a couple of times but I think I am having pathing issues
> here and there.  NOt sure where I am off...  Any help is appreciated...
>
> <cftry>
>                                     <cfimage action="read" name="myImage"
> source="/site_theartoflovingcatsanddogs_com/taolcad_images/products/resize/#qry_allItemsInProductKeyList.largepic1#">
>
>                                     <cfcatch>
>                                         <cfimage action="read"
> name="myImage"
> source="/site_theartoflovingcatsanddogs_com/taolcad_images/products/#qry_allItemsInProductKeyList.largepic1#">
>                                         <!--- Set the square size of the
> thumb --->
>                                         <cfset sq_size = 333>
>                                         <!--- Write the result to a file.
> --->
>                                         <cfset
> ImageSetAntialiasing(myImage,"on")>
>                                         <cfset
> ImageScaleToFit(myImage,sq_size,sq_size)>
>                                         <!--- Calculate the x and y
> position to paste the image --->
>                                         <cfif myImage.width GTE
> myImage.height>
>                                                 <cfset x = 0>
>                                                 <cfset y =
> ceiling((myImage.width - myImage.height)/2)>
>                                         <cfelse>
>                                                 <cfset x =
> ceiling((myImage.height - myImage.width)/2)>
>                                                 <cfset y = 0>
>                                         </cfif>
>
>                                         <cfset newimg =
> ImageNew("",sq_size, sq_size, "rgb", "c4cba9")>
>                                         <cfset ImagePaste(newimg, myImage,
> x, y)>
>                                         <cfset
> ImageWrite(newimg,"/site_theartoflovingcatsanddogs_com/taolcad_images/products/resize/#qry_allItemsInProductKeyList.largepic1#")>
>                                     </cfcatch>
>
>                                     </cftry>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358663
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to