Closed stbergmann closed 5 years ago
[resurrecting the accidentally broken original https://github.com/tdf/libcmis/pull/20 "Properly encode OAuth2 credentials"]
Is there any reason that addXWwwFormUrlencoded is a void function? It could just return the encoded value, could it not? And I don't like the name much either... Perhaps something easier to read, like escapeForm or escapeUrlForm (to match libcmis::escape)? Also, please use the same formatting style as the surrounding code.
Thanks! Btw, the usual way to incorporate changes is to amend the existing commit(s) and force push.
Ah, sorry. Wasn't aware what the preferred github workflow is for that.
Originally created as https://gerrit.libreoffice.org/#/c/59986/ "Properly encode OAuth2 credentials". I was not sure which C++ version to target, so kept it pretty basic.