Problem/Motivation

The confirmation message prior to uploading new webform submissions reports the incorrect total in some cases where newlines are included as part of a column in the source CSV.

Steps to reproduce

Upload a CSV with new lines in a text field.

Proposed resolution

Replace `fgets()`with `fgetcsv()` in getTotal() method.

Issue fork webform-3386895

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ben.hamelin created an issue. See original summary.

jrockowitz’s picture

Status: Active » Needs review

  • 65e8a832 committed on 6.1.x
    Issue #3386895: Upload count is incorrect in getTotal method of...
jrockowitz’s picture

Status: Needs review » Fixed

  • 65e8a832 committed on 6.x
    Issue #3386895: Upload count is incorrect in getTotal method of...

  • 65e8a832 committed on 6.2.x
    Issue #3386895: Upload count is incorrect in getTotal method of...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.