Fix encoding bug when reading stdout during upgrade
This commit is contained in:
parent
18f4b4ff5c
commit
a3e7556a06
|
@ -303,7 +303,7 @@ class UpgradeView(MasterView):
|
|||
with open(path, 'rb') as f:
|
||||
f.seek(offset)
|
||||
chunk = f.read(size)
|
||||
data['stdout'] = chunk.replace('\n', '<br />')
|
||||
data['stdout'] = chunk.decode('utf8').replace('\n', '<br />')
|
||||
session['stdout.offset'] = offset + size
|
||||
session.save()
|
||||
|
||||
|
|
Loading…
Reference in a new issue