properly handle transferring evidence with special ao2 chars
This commit is contained in:
parent
e7daec78c7
commit
0659914127
@ -2080,6 +2080,8 @@ class GUI(QtGui.QWidget):
|
||||
return QtGui.QMessageBox.information(self, "Can't transfer evidence", 'The evidence "%s" already exists in the %s inventory.' % (evi[0], target_str))
|
||||
else:
|
||||
if self.privateinv:
|
||||
for i in range(len(evi)):
|
||||
evi[i] = evi[i].replace('#', '<num>').replace('%', '<percent>').replace('&', '<and>').replace('$', '<dollar>').replace('\\n', '\n')
|
||||
self.tcp.send('PE#' + evi[0] + '#' + evi[1] + '#' + evi[2] + '#%')
|
||||
else:
|
||||
self.privateevidence.append(evi)
|
||||
|
Loading…
Reference in New Issue
Block a user