{"action":"created","issue":{"url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1615","labels_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1615/labels{/name}","comments_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1615/comments","events_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1615/events","html_url":"https://github.com/jzaefferer/jquery-validation/issues/1615","id":111851731,"number":1615,"title":"C:\\fakepath\\ is added to length when checking the length of a file type","user":{"login":"zoo1","id":4008169,"avatar_url":"https://avatars.githubusercontent.com/u/4008169?v=3","gravatar_id":"","url":"https://api.github.com/users/zoo1","html_url":"https://github.com/zoo1","followers_url":"https://api.github.com/users/zoo1/followers","following_url":"https://api.github.com/users/zoo1/following{/other_user}","gists_url":"https://api.github.com/users/zoo1/gists{/gist_id}","starred_url":"https://api.github.com/users/zoo1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoo1/subscriptions","organizations_url":"https://api.github.com/users/zoo1/orgs","repos_url":"https://api.github.com/users/zoo1/repos","events_url":"https://api.github.com/users/zoo1/events{/privacy}","received_events_url":"https://api.github.com/users/zoo1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-16T15:12:39Z","updated_at":"2015-10-19T12:45:19Z","closed_at":null,"body":"C:\\fakepath\\ is added in to the value field of file inputs. This should be stripped out when validated. The validators affected are maxlength, minlength, rangelength, range, min, and max. My current solution is to add `b=a(c).attr('type')=='file'?b.replace(/C:\\fakepath\\/i,'');` to each of the validators. However, I know this is not an elegant solution and was wondering if one the maintainers could point me in the right direction.\r\n\r\nTesting Notes:\r\ntest form: https://jsfiddle.net/zp423Lup/6/\r\ntest file to downloaded file: https://www.owasp.org/images/5/52/OWASP_Testing_Guide_v4.pdf\r\nnote that the length of the file name is 26 characters and the maxlength is 30 characters so it should pass.\r\n\r\nBrowsers affected: latest version of Chrome and Safari\r\nPlug-in Versions affected: v1.13.0 - latest"},"comment":{"url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/comments/149203217","html_url":"https://github.com/jzaefferer/jquery-validation/issues/1615#issuecomment-149203217","issue_url":"https://api.github.com/repos/jzaefferer/jquery-validation/issues/1615","id":149203217,"user":{"login":"staabm","id":120441,"avatar_url":"https://avatars.githubusercontent.com/u/120441?v=3","gravatar_id":"","url":"https://api.github.com/users/staabm","html_url":"https://github.com/staabm","followers_url":"https://api.github.com/users/staabm/followers","following_url":"https://api.github.com/users/staabm/following{/other_user}","gists_url":"https://api.github.com/users/staabm/gists{/gist_id}","starred_url":"https://api.github.com/users/staabm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staabm/subscriptions","organizations_url":"https://api.github.com/users/staabm/orgs","repos_url":"https://api.github.com/users/staabm/repos","events_url":"https://api.github.com/users/staabm/events{/privacy}","received_events_url":"https://api.github.com/users/staabm/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T12:45:19Z","updated_at":"2015-10-19T12:45:19Z","body":"So I guess we should use the method mentioned in the spec instead of doing a custom regex, right?"}}