-
-
Notifications
You must be signed in to change notification settings - Fork 596
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
Allow escaping of excel formulas #257
Comments
I think it can be done in xlsx formatter. https://github.com/kennethreitz/tablib/blob/master/tablib/formats/_xlsx.py#L123 You can add a Pull requests are welcome. 👍 |
I raised this on the openpyxl forum to ask about best practice for escaping formulae when exporting. The response was to rewrite cell contents to remove the '=' char for function cell types. What is the opinion here about implementing this in tablib? (we would potentially need this downstream in django-import-export). I would be happy to work on a PR if you think this is suitable. |
I'll gladly review a PR for this. |
Hello,
Packages that leverage this app like django-tablib allows us to export user submitted data.
This exposes a potential security issue where users can add excel formulas to certain exported fields.
Excel allows us to use
'
at the beginning of any cell value to have it treated as text only and thus not execute any formula.I did some digging and looks like this feature is not supported.
I'm interested in contributing this but I'm not 100% sure exactly where, is this something that should go on the packaged dependencies?
The text was updated successfully, but these errors were encountered: