formtools / module-form_builder

The Form Builder module.
https://docs.formtools.org/modules/form_builder/
15 stars 21 forks source link

Forms » Add Form » External Form #24

Closed MNHarun closed 6 years ago

MNHarun commented 6 years ago

I'm building Windows desktop program and the program sends form data to FormTools. One of the function is to assist creating a form in FormTools (External form).

I'm using System.Net.Http.HttpClient to send a POST to initiate creating new form.

My C# codes works with FormTools 2.2.6 and able to proceed to finish creating new external form. Now, using FormTools 3.0.1, same C# code, I get this:

<html>
    <body>
        <script type="text/javascript" src="/aes.js" ></script>
        <script>function toNumbers(d){var e=[];d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});return e}function toHex(){for(var d=[],d=1==arguments.length&&arguments[0].constructor==Array?arguments[0]:arguments,e="",f=0;f
            <d.length;f++)e+=(16>d[f]?"0":"")+d[f].toString(16);return e.toLowerCase()}var a=toNumbers("f655ba9d09a112d4968c63579db590b4"),b=toNumbers("98344c2eee86c3994890592585b49f80"),c=toNumbers("93fa3a6c66330c67b5055af2356406dc");document.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/"; location.href="http://mydomain.com/process.php?field1=data1&field2=data2&i=1";
            </script>
            <noscript>This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support</noscript>
        </body>
</html>

Should I be concerned with maybe System.Net.Http.HttpClient component or my FormTools 3.0.1 setup?

I'm testing FormTools 3.0.1 to replace 2.2.6 for the PHP version (my host is forcing update by August this year). Test host is at infinityfree.net

MNHarun commented 6 years ago

Never mind. https://infinityfree.net/support/javascript-error-using-api-or-mobile-android-app/