Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop duplicate flags in templatedetails.extra_flags + security fix to website_code/php/properties/delete_file_template.php #57

Merged
merged 35 commits into from May 13, 2014

Conversation

DavidGoodwin
Copy link
Contributor

Improve the storing of new extra_flags (e.g. changing the template from flash to javascript).
This change stops duplicate keys.

@DavidGoodwin
Copy link
Contributor Author

Try and improve security around website_code/php/properties/delete_file_template.php - so at least only logged in users can delete arbitrary files off the webserver.

Note - I've had trouble duplicating / triggering this code - and it probably needs more work still - but this change should be better than nothing. File deletion seemed to happen nearly randomly to me. I'm assuming it's called from the flash LO editor. $_POST['path'] really needs checking/filtering (i.e. stop it containing ../ and so on).

@DavidGoodwin DavidGoodwin changed the title Stop duplicate flags in templatedetails.extra_flags Stop duplicate flags in templatedetails.extra_flags + security fix to website_code/php/properties/delete_file_template.php Mar 19, 2014
…nam to create zip in temporary directory and not in CWD.
…e_code/php/properties/properties_template.php)
…ith zip file creation; use tempnam() for tmp file
@DavidGoodwin
Copy link
Contributor Author

Fixes memory issue with template exporting - by using the inbuilt PHP zip extension if it's available. If the php zip extension isn't available, zip file creation should occur as before.

torinfo added a commit that referenced this pull request May 13, 2014
Stop duplicate flags in templatedetails.extra_flags + security fix to website_code/php/properties/delete_file_template.php
@torinfo torinfo merged commit 15c7601 into thexerteproject:develop May 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants