Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
d263609b
Commit
d263609b
authored
Feb 13, 2016
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
68a2d35c
6bf280c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
weblate/accounts/captcha.py
weblate/accounts/captcha.py
+1
-2
weblate/html/zen-units.html
weblate/html/zen-units.html
+1
-1
No files found.
weblate/accounts/captcha.py
View file @
d263609b
...
...
@@ -24,7 +24,6 @@ Simple mathematical captcha.
from
__future__
import
unicode_literals
import
ast
import
binascii
from
base64
import
b64encode
,
b64decode
import
hashlib
import
operator
...
...
@@ -166,7 +165,7 @@ def unhash_question(question):
timestamp
=
question
[
40
:
50
]
try
:
question
=
b64decode
(
question
[
50
:]).
decode
(
'utf-8'
)
except
(
binascii
.
Error
,
UnicodeError
):
except
(
Type
Error
,
UnicodeError
):
raise
ValueError
(
'Invalid encoding'
)
if
hexsha
!=
checksum_question
(
question
,
timestamp
):
raise
ValueError
(
'Tampered question!'
)
...
...
weblate/html/zen-units.html
View file @
d263609b
...
...
@@ -19,7 +19,7 @@
<td></td>
<td
colspan=
"2"
class=
"translatetext"
>
{% if not user.profile.hide_source_secondary or not item.secondary %}
{% format_translation item.unit.source item.unit.translation.subproject.project.source_language search_match=search_query num_plurals=unit.translation.language.nplurals %}
{% format_translation item.unit.source item.unit.translation.subproject.project.source_language search_match=search_query num_plurals=
item.
unit.translation.language.nplurals %}
{% endif %}
{% if item.secondary %}
{% for unit in item.secondary %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment