Re: octstr_url_decode: corrupted end-of-string <%>
Stipe Tolj <[email protected]> Fri, 24 Jun 2022 09:00:58 +0200
| Newsgroups | gmane.comp.mobile.kannel.user |
|---|---|
| Organization | Kannel Foundation |
| Message-ID | <[email protected]> |
Am 22.06.22, 09:13, schrieb christopher kamutumwa: > Hello team, > I get this when % sign is put in message . Advise how to resolve. the function octstr_url_decode() assumes that the input is a URL-encoded string. By definition a % is a special character in the URL-encoded string format, which follows a 2 character value representing the byte code, i.e. %30 for the ASCII character '0'. A sole '%' in the string, i.e. at the end would be an illegal input, by definition. If you need to "decode" a '%' sign itself, that would be the URL-encoded value %25. -- Best Regards, Stipe Tolj ------------------------------------------------------------------- Düsseldorf, NRW, Germany Kannel Foundation tolj.org system architecture http://www.kannel.org/ http://www.tolj.org/ [email protected] [email protected] -------------------------------------------------------------------