Skip to content

Commit e9764a0

Browse files
author
Martii
committed
Post fix for #484
* Most Oauths won't have an array ref in it but just to be sure replace from end
1 parent d577196 commit e9764a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

controllers/admin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ exports.apiAdminUpdate = function (aReq, aRes, aNext) {
372372
postStrats = Object.keys(aReq.body).filter(function (aEl) {
373373
return /\[0\]$/.test(aEl);
374374
}).map(function (aPostStrat) {
375-
var strat = aPostStrat.replace(/\[0\]/, '');
375+
var strat = aPostStrat.replace(/\[0\]$/, '');
376376
return {
377377
name: strat,
378378
id: aReq.body[strat + '[0]'] || '',

0 commit comments

Comments
 (0)