Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions mod_access_token.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@

#include "httpd.h"
#include "http_request.h"
#include "http_config.h"
#include "http_protocol.h"
#include "http_log.h"
#include "ap_config.h"
#include "apr_base64.h"
#include "apr_sha1.h"
#include "apr_strings.h"
#include "apr_lib.h"
Expand Down Expand Up @@ -108,7 +110,11 @@ static apr_status_t access_token_parse_args( request_rec *r, apr_table_t *params
while(*args && (val = ap_getword(r->pool, &args, '&'))) {
char *name = ap_getword_nc(r->pool, &val, '=');
if(name != NULL && val != NULL) {
#if (AP_SERVER_MINORVERSION_NUMBER > 2)
if(ap_unescape_url_keep2f(val, 1) == OK)
#else
if(ap_unescape_url_keep2f(val) == OK)
#endif
apr_table_set(params, name, val);
}
}
Expand Down