2018-07-30 Fred Gleason <fredg@paravelsystems.com>

* Modified the 'editcart.html' test harness to process UTF-8 strings
	correctly.
	* Modified the 'editcut.html' test harness to process UTF-8 strings
	correctly.
This commit is contained in:
Fred Gleason
2018-07-30 08:55:33 -04:00
parent 542fb7d6a6
commit 6888838f90
4 changed files with 99 additions and 65 deletions

View File

@@ -42,6 +42,32 @@ function PostForm(form,url)
}
function MakeMimeSeparator()
{
sep='----------------------------';
for(var i=0;i<27;i++) {
num=Math.floor(Math.random()*10);
sep+=num.toString();
}
return sep;
}
function AddMimePart(name,value,sep,is_last)
{
var form='Content-Disposition: form-data; name="'+name+'"\r\n';
form+='\r\n';
form+=value+'\r\n';
form+=sep;
if(is_last) {
form+='--';
}
form+='\r\n';
return form;
}
function UrlEncode(str) {
var ret=new String;