[asterisk-bugs] [JIRA] (ASTERISK-25669) CURL incorrect trim for non ASCII characters

Jesper (JIRA) noreply at issues.asterisk.org
Fri Jan 8 02:40:32 CST 2016


     [ https://issues.asterisk.org/jira/browse/ASTERISK-25669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesper updated ASTERISK-25669:
------------------------------

    Description: 
CURL removes all non ASCII characters if string ends with non ASCII characters
content of test.txt:
{noformat}
abcæøå
{noformat}
snip of test dialplan in extensions.ael:
{noformat}
Set(HTTPANSWER=${CURL(http://localhost/test.txt)});
{noformat}
verbose log:
{noformat}
-- Executing [] Set("Local/999", "HTTPANSWER=abc")
{noformat}
*After patch*
verbose log:
{noformat}
-- Executing [] Set("Local/999", "HTTPANSWER=abcæøå")
{noformat}



  was:
CURL removes all non ASCII characters if string ends with non ASCII characters
content of test.txt:
abcæøå
snip of test dialplan in extensions.ael:
Set(HTTPANSWER=${CURL(http://localhost/test.txt)});

verbose log:
-- Executing [] Set("Local/999", "HTTPANSWER=abc")

after patch
verbose log:
-- Executing [] Set("Local/999", "HTTPANSWER=abcæøå")





> CURL incorrect trim for non ASCII characters
> --------------------------------------------
>
>                 Key: ASTERISK-25669
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25669
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Functions/func_curl, Functions/func_strings
>    Affects Versions: 11.20.0
>         Environment: CentOs 6.7
>            Reporter: Jesper
>
> CURL removes all non ASCII characters if string ends with non ASCII characters
> content of test.txt:
> {noformat}
> abcæøå
> {noformat}
> snip of test dialplan in extensions.ael:
> {noformat}
> Set(HTTPANSWER=${CURL(http://localhost/test.txt)});
> {noformat}
> verbose log:
> {noformat}
> -- Executing [] Set("Local/999", "HTTPANSWER=abc")
> {noformat}
> *After patch*
> verbose log:
> {noformat}
> -- Executing [] Set("Local/999", "HTTPANSWER=abcæøå")
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list