mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 16:08:33 +00:00
Check content disposition flag in carrier config before parsing PDU.
Fixes #9081
This commit is contained in:
parent
ce86adab82
commit
0aad82d3d7
@ -123,7 +123,10 @@ public class IncomingLollipopMmsConnection extends LollipopMmsConnection impleme
|
||||
|
||||
Log.i(TAG, baos.size() + "-byte response: ");// + Hex.dump(baos.toByteArray()));
|
||||
|
||||
RetrieveConf retrieved = (RetrieveConf) new PduParser(baos.toByteArray()).parse();
|
||||
Bundle configValues = smsManager.getCarrierConfigValues();
|
||||
boolean parseContentDisposition = configValues.getBoolean(SmsManager.MMS_CONFIG_SUPPORT_MMS_CONTENT_DISPOSITION);
|
||||
|
||||
RetrieveConf retrieved = (RetrieveConf) new PduParser(baos.toByteArray(), parseContentDisposition).parse();
|
||||
|
||||
if (retrieved == null) return null;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user