Skip to content

testflight notes should be escaped #14

@dentarg

Description

@dentarg

The problem:

$ bundle exec rake testflight notes='Added "John Doe iPhone 4S" to the Provisioning Profile'
...

       Run /usr/bin/curl http://testflightapp.com/api/builds.json -F file=@"./build/iPhoneOS-5.1-Development/MyApp.ipa" -F dsym=@"./build/iPhoneOS-5.1-Development/MyApp.dSYM.zip" -F api_token='removed' -F team_token='removed' -F notes="Added "John Doe iPhone 4S" to the Provisioning Profile" -F notify=True
{
...
    "release_notes": "Added John", 
    "binary_size": 1088533
}
curl: (6) Could not resolve host: Doe; nodename nor servname provided, or not known
curl: (6) Could not resolve host: iPhone; nodename nor servname provided, or not known

I solved it with

rake testflight notes='Added \"John Doe iPhone 4S\" to the Provisioning Profile'

but maybe you could escape the notes string before using it with curl?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions