Closed cgranade closed 12 years ago
load_file
in gdi_interface.c should strip a newline if it is the very last character in the file, but otherwise it won't. I think I am just going to hardcode the redirect uri, since it is actually a constant thing.
However, this bug likely also applies to clientsecrets and clientid.
redirecturi
has now been hardcoded. Not sure if this is still an issue for clientsecrets or clientid.
69251c81f623e3ea92e06b0cdff42bc31822f9f7 should have fixed this, I think. It strips all newline characters from the data read in load_file(). This might be an issue should someone want to use load_file() for something that should have newlines, but I'll deal with that if it ever becomes an issue...
If there is a newline in the file
redirecturi
, then it will be added verbatim to the initial request URI at line 331 ofgd_interface.c
, resulting in the constructed URI missing the client ID.