minor bug fix: unbase64
This commit is contained in:
parent
9bf11ffd57
commit
7264d4f88d
|
@ -1025,8 +1025,7 @@ void _mms_fixup_address(Octstr **address, char *unified_prefix, List *strip_pref
|
||||||
typ = NULL;
|
typ = NULL;
|
||||||
|
|
||||||
if (isphonenum(*address) || (typ && octstr_str_compare(typ, "/TYPE=PLMN") == 0)) {
|
if (isphonenum(*address) || (typ && octstr_str_compare(typ, "/TYPE=PLMN") == 0)) {
|
||||||
if (unified_prefix)
|
mms_normalize_phonenum(address, unified_prefix, strip_prefixes);
|
||||||
mms_normalize_phonenum(address, unified_prefix, strip_prefixes);
|
|
||||||
octstr_append(*address, keep_suffix ? octstr_imm("/TYPE=PLMN") : octstr_imm(""));
|
octstr_append(*address, keep_suffix ? octstr_imm("/TYPE=PLMN") : octstr_imm(""));
|
||||||
} else if (typ)
|
} else if (typ)
|
||||||
octstr_append(*address, keep_suffix ? typ : octstr_imm(""));
|
octstr_append(*address, keep_suffix ? typ : octstr_imm(""));
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
#define MMSC_VERSION MBUNI_VERSION
|
#define MMSC_VERSION MBUNI_VERSION
|
||||||
#define MMS_NAME PACKAGE
|
#define MMS_NAME PACKAGE
|
||||||
|
|
||||||
#define DRM_CONTENT_TYPE(ctype) (octstr_case_search(ctype, octstr_imm("application/vnd.oma.drm"), 0) == 0)
|
#define DRM_CONTENT_TYPE(ctype) ((ctype) && octstr_case_search(ctype, octstr_imm("application/vnd.oma.drm"), 0) == 0)
|
||||||
|
|
||||||
/* Message location flags: Used to distinguish fetch-urls */
|
/* Message location flags: Used to distinguish fetch-urls */
|
||||||
enum mms_loc_t {MMS_LOC_MMBOX = 1, MMS_LOC_MQUEUE=2};
|
enum mms_loc_t {MMS_LOC_MMBOX = 1, MMS_LOC_MQUEUE=2};
|
||||||
|
|
Loading…
Reference in New Issue