Skip to content
\n

— the $_POST['client_signature'] should be the only inputed data coming from the end-client’s browser, everything else is hardcoded in variables that cant’t be changed or messed with inside the PHP script.

\n

Take for example the contract body on line 106 (contract.php):

\n
$CONTRACT_HTML='\n  <h1>Contract of work</h1><p>This Contract is made and entered into […]</p>\n';\n
\n

This

\n\n

Hope this helps!

","upvoteCount":1,"url":"https://github.com/nonsalant/contract/discussions/18#discussioncomment-7324531"}}}

Modify javascript of contract #18

Answered by nonsalant
UnMugViolet asked this question in Q&A
Discussion options

You must be logged in to vote

Hi.

If by “recipient” you mean the person editing/creating(/downloading/etc) the contract (this would also be the person who puts down the first signature), this is the script that catches al the data and puts it together: https://github.com/nonsalant/contract/blob/master/generator/scripts/download/generate.js

But I’m not sure if any effective protections can be added—or if they would be needed here. As the creator of the contract, they need to be able to edit all (or at least most) parts of the contract, and since they need to download the resulting file (before they upload it again to the final PHP-enabled server) they’d have access to the full source where they can change any PHP, HTML…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nonsalant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants