Sha256: 96c70e91d384b4dab83594af91decec8bdd37af9224f1154f638b8e95b22b441

Contents?: true

Size: 765 Bytes

Versions: 20

Compression:

Stored size: 765 Bytes

Contents

var properFilename = '/ \\ ? % * | " < > . ☃ ; \' @ # $ ^ & ( ) - _ = + { } [ ] ` ~.txt';

function expect(filename) {
  return [
    {type: 'field', name: 'title', value: 'Weird filename'},
    {type: 'file', name: 'upload', filename: filename, fixture: properFilename},
  ];
};

var webkit = " ? % * | \" < > . ? ; ' @ # $ ^ & ( ) - _ = + { } [ ] ` ~.txt";
var ffOrIe = " ? % * | \" < > . ☃ ; ' @ # $ ^ & ( ) - _ = + { } [ ] ` ~.txt";

module.exports = {
  'osx-chrome-13.http'   : expect(webkit),
  'osx-firefox-3.6.http' : expect(ffOrIe),
  'osx-safari-5.http'    : expect(webkit),
  'xp-chrome-12.http'    : expect(webkit),
  'xp-ie-7.http'         : expect(ffOrIe),
  'xp-ie-8.http'         : expect(ffOrIe),
  'xp-safari-5.http'     : expect(webkit),
};

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
vulcan-0.6.1 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
vulcan-0.6.0 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
vulcan-0.5.0 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
vulcan-0.4.0 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
vulcan-0.3.0 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
vulcan-0.2.5 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
vulcan-0.2.4 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
vulcan-0.2.3 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
vulcan-0.2.2 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
vulcan-0.2.1 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
vulcan-0.2.0 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
vulcan-0.1.6 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
vulcan-0.1.5 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
vulcan-0.1.4 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
vulcan-0.1.3 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
vulcan-0.1.2 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
vulcan-0.1.1 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
vulcan-0.1.0 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
vulcan-0.0.3 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
vulcan-0.0.2 server/node_modules/connect-form/node_modules/formidable/test/fixture/js/special-chars-in-filename.js