Skip to content

Instantly share code, notes, and snippets.

@djpate
Created January 12, 2011 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djpate/775860 to your computer and use it in GitHub Desktop.
Save djpate/775860 to your computer and use it in GitHub Desktop.
Patch file for Request #21316
*** provider.c 2010-10-10 07:49:58.228327000 +0200
--- patch/provider.c 2011-01-12 08:39:24.004000517 +0100
***************
*** 744,764 ****
do {
long cb_res;
- retval = oauth_provider_call_cb(INTERNAL_FUNCTION_PARAM_PASSTHRU, OAUTH_PROVIDER_TSNONCE_CB);
- if (retval) {
- convert_to_long(retval);
- cb_res = Z_LVAL_P(retval);
- zval_ptr_dtor(&retval);
-
- if (OAUTH_OK!=cb_res) {
- soo_handle_error(NULL, cb_res, "Invalid nonce/timestamp combination", NULL, additional_info TSRMLS_CC);
- break;
- }
- } else if (EG(exception)) {
- /* pass exceptions */
- break;
- }
-
retval = oauth_provider_call_cb(INTERNAL_FUNCTION_PARAM_PASSTHRU, OAUTH_PROVIDER_CONSUMER_CB);
if (retval) {
convert_to_long(retval);
--- 744,749 ----
***************
*** 790,795 ****
--- 775,795 ----
break;
}
}
+
+ retval = oauth_provider_call_cb(INTERNAL_FUNCTION_PARAM_PASSTHRU, OAUTH_PROVIDER_TSNONCE_CB);
+ if (retval) {
+ convert_to_long(retval);
+ cb_res = Z_LVAL_P(retval);
+ zval_ptr_dtor(&retval);
+
+ if (OAUTH_OK!=cb_res) {
+ soo_handle_error(NULL, cb_res, "Invalid nonce/timestamp combination", NULL, additional_info TSRMLS_CC);
+ break;
+ }
+ } else if (EG(exception)) {
+ /* pass exceptions */
+ break;
+ }
/* now for the signature stuff */
sbs = oauth_generate_sig_base(NULL, http_verb, uri, sbs_vars, NULL TSRMLS_CC);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment