File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -370,10 +370,18 @@ plugins.connectToAllDatabases().then(function() {
370370 }
371371
372372 const form = new formidable . IncomingForm ( formidableOptions ) ;
373- req . body = '' ;
374- req . on ( 'data' , ( data ) => {
375- req . body += data ;
376- } ) ;
373+ if ( / c r a s h _ s y m b o l s \/ ( a d d _ s y m b o l | u p l o a d _ s y m b o l ) / . test ( req . url ) ) {
374+ req . body = [ ] ;
375+ req . on ( 'data' , ( data ) => {
376+ req . body . push ( data ) ;
377+ } ) ;
378+ }
379+ else {
380+ req . body = '' ;
381+ req . on ( 'data' , ( data ) => {
382+ req . body += data ;
383+ } ) ;
384+ }
377385
378386 let multiFormData = false ;
379387 // Check if we have 'multipart/form-data'
@@ -432,4 +440,4 @@ plugins.connectToAllDatabases().then(function() {
432440
433441 plugins . loadConfigs ( common . db ) ;
434442 }
435- } ) ;
443+ } ) ;
You can’t perform that action at this time.
0 commit comments