Can a python view template be made to be 'safe/secure' if I make it user editable?

Posted by Blankman on Stack Overflow See other posts from Stack Overflow or by Blankman
Published on 2010-06-13T22:23:01Z Indexed on 2010/06/13 22:32 UTC
Read the original article Hit count: 217

Filed under:
|
|
|

Say I need to have a templating system where a user can edit it online using an online editor.

So they can put if tags, looping tags etc., but ONLY for specific objects that I want to inject into the template.

Can this be made to be safe from security issues?

i.e. them somehow outputing sql connection string information or scripting things outside of the allowable tags and injected objects.

© Stack Overflow or respective owner

Related posts about python

Related posts about django