Skip to content
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.

oauth2-server isn't chopping \n characters from lines read from $stdin.gets #15

Open
bploetz opened this issue Mar 27, 2012 · 0 comments
Assignees
Milestone

Comments

@bploetz
Copy link
Collaborator

bploetz commented Mar 27, 2012

When running oauth2-server, many of the values collected on the command line end up looking like this in the database:

{ "_id" : ObjectId("4d81ce61f1ea7ea4cf999991"), "display_name" : "foo\n", "link" : "http://www.foo.com\n",

Note the \n characters. IO#gets includes the line separator in the line it reads. oauth2-server should chop the string read from $stdin.gets before storing it in the database to remove the trailing \n character

@ghost ghost assigned bploetz May 16, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant