Commit 983108e9a7857c3792f6fc38f9bc63d37d43385f
1 parent
f6fe192946
Exists in
master
adding single quotation bug fix
Showing 2 changed files with 2 additions and 1 deletions Side-by-side Diff
project/project/controller/maria_db.py
View file @
983108e
project/project/templates/user.html
View file @
983108e
... | ... | @@ -59,7 +59,7 @@ |
59 | 59 | {% print di['cdate'] %} |
60 | 60 | </td> |
61 | 61 | <td> |
62 | - <input type="button" class="btn btn-primary" style="line-height:4px;height:25px;width:50px;" value="DEL" onclick="del_user('{{ di['uid'] }}', '{{ di['name'].decode('utf-8')|safe }}')"/> | |
62 | + <input type="button" class="btn btn-primary" style="line-height:4px;height:25px;width:50px;" value="DEL" onclick="del_user('{{ di['uid'] }}', '{{ di['name'].replace("'","\\\'").decode('utf-8') }}')"/> | |
63 | 63 | </td> |
64 | 64 | |
65 | 65 | </tr> |