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

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


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=228937#comment-228937 ] 

Rusty Newton commented on ASTERISK-25669:
-----------------------------------------

Once you've followed the Code Review process [1] and submitted your code to Gerrit [2] be sure to edit this JIRA issue and add the Gerrit review URL in the appropriate field.

Thanks!

[1] https://wiki.asterisk.org/wiki/display/AST/Code+Review
[2] https://wiki.asterisk.org/wiki/display/AST/Gerrit+Usage



> [patch]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