Skip to content

Commit

Permalink
changed condition again
Browse files Browse the repository at this point in the history
  • Loading branch information
ayasayadi1 committed Sep 6, 2023
1 parent 0b85cd7 commit f86e2e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/utils/requestProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,7 @@ const processRequest = (params) => {
break;
}
case '/i': {
if (plugins.getConfig("api", params.app && params.app.plugins, true).trim_trailing_ending_spaces) {
if ([true, "true"].includes(plugins.getConfig("api", params.app && params.app.plugins, true).trim_trailing_ending_spaces)) {
params.qstring = common.trimWhitespaceStartEnd(params.qstring);
}
params.ip_address = params.qstring.ip_address || common.getIpAddress(params.req);
Expand Down

0 comments on commit f86e2e9

Please sign in to comment.