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

Rusty Newton (JIRA) noreply at issues.asterisk.org
Mon Jan 11 11:11:33 CST 2016


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

Rusty Newton updated ASTERISK-25669:
------------------------------------

    Status: Open  (was: Triage)

> 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
>            Severity: Minor
>         Attachments: strings.curl.trim.patch
>
>
> 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