add exception for LE packets in demos, which encode ampersand separators
This commit is contained in:
parent
4140a3339a
commit
05ff6b08a2
@ -542,7 +542,11 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
|
|||||||
QVector<evi_type> f_evi_list;
|
QVector<evi_type> f_evi_list;
|
||||||
|
|
||||||
for (QString f_string : f_contents_encoded) {
|
for (QString f_string : f_contents_encoded) {
|
||||||
QStringList sub_contents = f_string.split("&");
|
QStringList sub_contents;
|
||||||
|
if (f_contents_encoded.contains("&"))
|
||||||
|
sub_contents = f_string.split("&");
|
||||||
|
else
|
||||||
|
sub_contents = f_string.split("<and>"); // demos incorrectly encode the separator so we have to account for that
|
||||||
|
|
||||||
if (sub_contents.size() < 3)
|
if (sub_contents.size() < 3)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user