This topic is locked

Problem if text field contains 'Content-Type'

9/5/2005 5:25:50 AM
ASPRunnerPro General questions
J
jcottrell author

I'm using ASPRunner Pro 3.2 with an Access database. The main table includes a document upload field.
If the text in a Text Area field contains the string "Content-Type", that text is totally trashed when the record is saved. I suspect a bug in the ParseMultiPartForm function
I need a fix for this urgently. I don't mind hand editing the generated code in the short term

Sergey Kornilov admin 9/5/2005

Hi,
thank you for pointing me to this bug.

We will fix this in the next ASPRunnerPro update.
To correct this please modify

C:\Program Files\ASPRunnerPro\source\include\aspfunctions.asp

file the following way:

Find this line

if InStrB(1, val, Unicode2Bytes("Content-Type")) < 1 then varValue=Bytes2String(varValue)



and replace it with:

if InStr(1, varInfo, "Content-Type") < 1 then varValue=Bytes2String(varValue)


Then rebuild your project.