we should validate for user input.
naz has two places where it can get data from the outside(ie from app developers)
-
|
async def submit_sm( |
|
self, short_message: str, log_id: str, source_addr: str, destination_addr: str |
|
) -> None: |
|
""" |
-
|
async def dequeue_messages( |
|
self, TESTING: bool = False |
|
) -> typing.Union[str, typing.Dict[typing.Any, typing.Any]]: |
So we know for example that according to the spec, a source_addr should be a str of maximum 21 octets/bytes;
|
# source_addr, c-octet str, max 21octet. eg; This is usually the senders phone Number |
We should validate for that
Note; naz can also get data from SMSC, but for now we will treat an SMSC as a trusted party.
we should validate for user input.
nazhas two places where it can get data from the outside(ie from app developers)naz/naz/client.py
Lines 1108 to 1111 in 14fe3be
naz/naz/client.py
Lines 1523 to 1525 in 14fe3be
So we know for example that according to the spec, a
source_addrshould be astrof maximum 21 octets/bytes;naz/naz/client.py
Line 1133 in 14fe3be
We should validate for that
Note;
nazcan also get data from SMSC, but for now we will treat an SMSC as a trusted party.