In s3fs_cors.js, the max_size() function uses %maxSizeMB in the format string but %maxSize in the replacement object. Since % placeholders wrap their value in , the mismatch means the replacement never happens and raw HTML appears in the error message. Fix: switch to @maxSize (plain text) and add Math.round() for a clean integer.

Issue fork s3fs_cors-3590178

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

ethant created an issue. See original summary.

  • heddn committed f919f0a5 on 8.x-1.x authored by ethant
    fix: #3590178 Mismatched Drupal.t() placeholder in max file size...
heddn’s picture

Status: Active » Fixed

Thanks for the fixes.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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