Contact Form 7 - Version 3.5.4

Version Description

  • Fixed: Strip slashes from some text inputs before validating them.
  • The jQuery Form Plugin (jquery.form.js) has been updated to 3.45.0.
  • Translations for German, French, Persian and Romanian have been updated.
Download this release

Release Info

Developer takayukister
Plugin Icon 128x128 Contact Form 7
Version 3.5.4
Comparing to
See all releases

Code changes from version 3.5.3 to 3.5.4

includes/controller.php CHANGED
@@ -228,7 +228,7 @@ function wpcf7_enqueue_scripts() {
228
  wp_deregister_script( 'jquery-form' );
229
  wp_register_script( 'jquery-form',
230
  wpcf7_plugin_url( 'includes/js/jquery.form.min.js' ),
231
- array( 'jquery' ), '3.44.0-2013.09.15', true );
232
 
233
  $in_footer = true;
234
  if ( 'header' === WPCF7_LOAD_JS )
228
  wp_deregister_script( 'jquery-form' );
229
  wp_register_script( 'jquery-form',
230
  wpcf7_plugin_url( 'includes/js/jquery.form.min.js' ),
231
+ array( 'jquery' ), '3.45.0-2013.10.17', true );
232
 
233
  $in_footer = true;
234
  if ( 'header' === WPCF7_LOAD_JS )
includes/js/jquery.form.js CHANGED
@@ -1,6 +1,6 @@
1
  /*!
2
  * jQuery Form Plugin
3
- * version: 3.44.0-2013.09.15
4
  * Requires jQuery v1.5 or later
5
  * Copyright (c) 2013 M. Alsup
6
  * Examples and documentation at: http://malsup.com/jquery/form/
@@ -312,11 +312,15 @@ $.fn.ajaxSubmit = function(options) {
312
  }
313
 
314
  s.data = null;
315
- var beforeSend = s.beforeSend;
316
- s.beforeSend = function(xhr, o) {
 
 
 
 
317
  o.data = formdata;
318
- if(beforeSend)
319
- beforeSend.call(this, xhr, o);
320
  };
321
  return $.ajax(s);
322
  }
1
  /*!
2
  * jQuery Form Plugin
3
+ * version: 3.45.0-2013.10.17
4
  * Requires jQuery v1.5 or later
5
  * Copyright (c) 2013 M. Alsup
6
  * Examples and documentation at: http://malsup.com/jquery/form/
312
  }
313
 
314
  s.data = null;
315
+ var beforeSend = s.beforeSend;
316
+ s.beforeSend = function(xhr, o) {
317
+ //Send FormData() provided by user
318
+ if (options.formData)
319
+ o.data = options.formData;
320
+ else
321
  o.data = formdata;
322
+ if(beforeSend)
323
+ beforeSend.call(this, xhr, o);
324
  };
325
  return $.ajax(s);
326
  }
includes/js/jquery.form.min.js CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
- * jQuery Form Plugin; v20130916
3
  * http://jquery.malsup.com/form/
4
  * Copyright (c) 2013 M. Alsup; Dual licensed: MIT/GPL
5
  * https://github.com/malsup/form#copyright-and-license
6
  */
7
- ;(function(e){"use strict";function t(t){var r=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).ajaxSubmit(r))}function r(t){var r=t.target,a=e(r);if(!a.is("[type=submit],[type=image]")){var n=a.closest("[type=submit]");if(0===n.length)return;r=n[0]}var i=this;if(i.clk=r,"image"==r.type)if(void 0!==t.offsetX)i.clk_x=t.offsetX,i.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var o=a.offset();i.clk_x=t.pageX-o.left,i.clk_y=t.pageY-o.top}else i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop;setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)}function a(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var n={};n.fileapi=void 0!==e("<input type='file'/>").get(0).files,n.formdata=void 0!==window.FormData;var i=!!e.fn.prop;e.fn.attr2=function(){if(!i)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t){function r(r){var a,n,i=e.param(r,t.traditional).split("&"),o=i.length,s=[];for(a=0;o>a;a++)i[a]=i[a].replace(/\+/g," "),n=i[a].split("="),s.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return s}function o(a){for(var n=new FormData,i=0;a.length>i;i++)n.append(a[i].name,a[i].value);if(t.extraData){var o=r(t.extraData);for(i=0;o.length>i;i++)o[i]&&n.append(o[i][0],o[i][1])}t.data=null;var s=e.extend(!0,{},e.ajaxSettings,t,{contentType:!1,processData:!1,cache:!1,type:u||"POST"});t.uploadProgress&&(s.xhr=function(){var r=e.ajaxSettings.xhr();return r.upload&&r.upload.addEventListener("progress",function(e){var r=0,a=e.loaded||e.position,n=e.total;e.lengthComputable&&(r=Math.ceil(100*(a/n))),t.uploadProgress(e,a,n,r)},!1),r}),s.data=null;var l=s.beforeSend;return s.beforeSend=function(e,t){t.data=n,l&&l.call(this,e,t)},e.ajax(s)}function s(r){function n(e){var t=null;try{e.contentWindow&&(t=e.contentWindow.document)}catch(r){a("cannot get iframe.contentWindow document: "+r)}if(t)return t;try{t=e.contentDocument?e.contentDocument:e.document}catch(r){a("cannot get iframe.contentDocument: "+r),t=e.document}return t}function o(){function t(){try{var e=n(g).readyState;a("state = "+e),e&&"uninitialized"==e.toLowerCase()&&setTimeout(t,50)}catch(r){a("Server abort: ",r," (",r.name,")"),s(D),j&&clearTimeout(j),j=void 0}}var r=f.attr2("target"),i=f.attr2("action");w.setAttribute("target",d),(!u||/post/i.test(u))&&w.setAttribute("method","POST"),i!=m.url&&w.setAttribute("action",m.url),m.skipEncodingOverride||u&&!/post/i.test(u)||f.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),m.timeout&&(j=setTimeout(function(){T=!0,s(k)},m.timeout));var o=[];try{if(m.extraData)for(var l in m.extraData)m.extraData.hasOwnProperty(l)&&(e.isPlainObject(m.extraData[l])&&m.extraData[l].hasOwnProperty("name")&&m.extraData[l].hasOwnProperty("value")?o.push(e('<input type="hidden" name="'+m.extraData[l].name+'">').val(m.extraData[l].value).appendTo(w)[0]):o.push(e('<input type="hidden" name="'+l+'">').val(m.extraData[l]).appendTo(w)[0]));m.iframeTarget||v.appendTo("body"),g.attachEvent?g.attachEvent("onload",s):g.addEventListener("load",s,!1),setTimeout(t,15);try{w.submit()}catch(c){var p=document.createElement("form").submit;p.apply(w)}}finally{w.setAttribute("action",i),r?w.setAttribute("target",r):f.removeAttr("target"),e(o).remove()}}function s(t){if(!x.aborted&&!F){if(M=n(g),M||(a("cannot access response document"),t=D),t===k&&x)return x.abort("timeout"),S.reject(x,"timeout"),void 0;if(t==D&&x)return x.abort("server abort"),S.reject(x,"error","server abort"),void 0;if(M&&M.location.href!=m.iframeSrc||T){g.detachEvent?g.detachEvent("onload",s):g.removeEventListener("load",s,!1);var r,i="success";try{if(T)throw"timeout";var o="xml"==m.dataType||M.XMLDocument||e.isXMLDoc(M);if(a("isXml="+o),!o&&window.opera&&(null===M.body||!M.body.innerHTML)&&--O)return a("requeing onLoad callback, DOM not available"),setTimeout(s,250),void 0;var u=M.body?M.body:M.documentElement;x.responseText=u?u.innerHTML:null,x.responseXML=M.XMLDocument?M.XMLDocument:M,o&&(m.dataType="xml"),x.getResponseHeader=function(e){var t={"content-type":m.dataType};return t[e.toLowerCase()]},u&&(x.status=Number(u.getAttribute("status"))||x.status,x.statusText=u.getAttribute("statusText")||x.statusText);var l=(m.dataType||"").toLowerCase(),c=/(json|script|text)/.test(l);if(c||m.textarea){var f=M.getElementsByTagName("textarea")[0];if(f)x.responseText=f.value,x.status=Number(f.getAttribute("status"))||x.status,x.statusText=f.getAttribute("statusText")||x.statusText;else if(c){var d=M.getElementsByTagName("pre")[0],h=M.getElementsByTagName("body")[0];d?x.responseText=d.textContent?d.textContent:d.innerText:h&&(x.responseText=h.textContent?h.textContent:h.innerText)}}else"xml"==l&&!x.responseXML&&x.responseText&&(x.responseXML=X(x.responseText));try{E=_(x,l,m)}catch(b){i="parsererror",x.error=r=b||i}}catch(b){a("error caught: ",b),i="error",x.error=r=b||i}x.aborted&&(a("upload aborted"),i=null),x.status&&(i=x.status>=200&&300>x.status||304===x.status?"success":"error"),"success"===i?(m.success&&m.success.call(m.context,E,"success",x),S.resolve(x.responseText,"success",x),p&&e.event.trigger("ajaxSuccess",[x,m])):i&&(void 0===r&&(r=x.statusText),m.error&&m.error.call(m.context,x,i,r),S.reject(x,"error",r),p&&e.event.trigger("ajaxError",[x,m,r])),p&&e.event.trigger("ajaxComplete",[x,m]),p&&!--e.active&&e.event.trigger("ajaxStop"),m.complete&&m.complete.call(m.context,x,i),F=!0,m.timeout&&clearTimeout(j),setTimeout(function(){m.iframeTarget?v.attr("src",m.iframeSrc):v.remove(),x.responseXML=null},100)}}}var l,c,m,p,d,v,g,x,b,y,T,j,w=f[0],S=e.Deferred();if(S.abort=function(e){x.abort(e)},r)for(c=0;h.length>c;c++)l=e(h[c]),i?l.prop("disabled",!1):l.removeAttr("disabled");if(m=e.extend(!0,{},e.ajaxSettings,t),m.context=m.context||m,d="jqFormIO"+(new Date).getTime(),m.iframeTarget?(v=e(m.iframeTarget),y=v.attr2("name"),y?d=y:v.attr2("name",d)):(v=e('<iframe name="'+d+'" src="'+m.iframeSrc+'" />'),v.css({position:"absolute",top:"-1000px",left:"-1000px"})),g=v[0],x={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var r="timeout"===t?"timeout":"aborted";a("aborting upload... "+r),this.aborted=1;try{g.contentWindow.document.execCommand&&g.contentWindow.document.execCommand("Stop")}catch(n){}v.attr("src",m.iframeSrc),x.error=r,m.error&&m.error.call(m.context,x,r,t),p&&e.event.trigger("ajaxError",[x,m,r]),m.complete&&m.complete.call(m.context,x,r)}},p=m.global,p&&0===e.active++&&e.event.trigger("ajaxStart"),p&&e.event.trigger("ajaxSend",[x,m]),m.beforeSend&&m.beforeSend.call(m.context,x,m)===!1)return m.global&&e.active--,S.reject(),S;if(x.aborted)return S.reject(),S;b=w.clk,b&&(y=b.name,y&&!b.disabled&&(m.extraData=m.extraData||{},m.extraData[y]=b.value,"image"==b.type&&(m.extraData[y+".x"]=w.clk_x,m.extraData[y+".y"]=w.clk_y)));var k=1,D=2,A=e("meta[name=csrf-token]").attr("content"),L=e("meta[name=csrf-param]").attr("content");L&&A&&(m.extraData=m.extraData||{},m.extraData[L]=A),m.forceSync?o():setTimeout(o,10);var E,M,F,O=50,X=e.parseXML||function(e,t){return window.ActiveXObject?(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},C=e.parseJSON||function(e){return window.eval("("+e+")")},_=function(t,r,a){var n=t.getResponseHeader("content-type")||"",i="xml"===r||!r&&n.indexOf("xml")>=0,o=i?t.responseXML:t.responseText;return i&&"parsererror"===o.documentElement.nodeName&&e.error&&e.error("parsererror"),a&&a.dataFilter&&(o=a.dataFilter(o,r)),"string"==typeof o&&("json"===r||!r&&n.indexOf("json")>=0?o=C(o):("script"===r||!r&&n.indexOf("javascript")>=0)&&e.globalEval(o)),o};return S}if(!this.length)return a("ajaxSubmit: skipping submit process - no element selected"),this;var u,l,c,f=this;"function"==typeof t?t={success:t}:void 0===t&&(t={}),u=t.type||this.attr2("method"),l=t.url||this.attr2("action"),c="string"==typeof l?e.trim(l):"",c=c||window.location.href||"",c&&(c=(c.match(/^([^#]+)/)||[])[1]),t=e.extend(!0,{url:c,success:e.ajaxSettings.success,type:u||e.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},t);var m={};if(this.trigger("form-pre-serialize",[this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(t.beforeSerialize&&t.beforeSerialize(this,t)===!1)return a("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var p=t.traditional;void 0===p&&(p=e.ajaxSettings.traditional);var d,h=[],v=this.formToArray(t.semantic,h);if(t.data&&(t.extraData=t.data,d=e.param(t.data,p)),t.beforeSubmit&&t.beforeSubmit(v,this,t)===!1)return a("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[v,this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var g=e.param(v,p);d&&(g=g?g+"&"+d:d),"GET"==t.type.toUpperCase()?(t.url+=(t.url.indexOf("?")>=0?"&":"?")+g,t.data=null):t.data=g;var x=[];if(t.resetForm&&x.push(function(){f.resetForm()}),t.clearForm&&x.push(function(){f.clearForm(t.includeHidden)}),!t.dataType&&t.target){var b=t.success||function(){};x.push(function(r){var a=t.replaceTarget?"replaceWith":"html";e(t.target)[a](r).each(b,arguments)})}else t.success&&x.push(t.success);if(t.success=function(e,r,a){for(var n=t.context||this,i=0,o=x.length;o>i;i++)x[i].apply(n,[e,r,a||f,f])},t.error){var y=t.error;t.error=function(e,r,a){var n=t.context||this;y.apply(n,[e,r,a,f])}}if(t.complete){var T=t.complete;t.complete=function(e,r){var a=t.context||this;T.apply(a,[e,r,f])}}var j=e("input[type=file]:enabled",this).filter(function(){return""!==e(this).val()}),w=j.length>0,S="multipart/form-data",k=f.attr("enctype")==S||f.attr("encoding")==S,D=n.fileapi&&n.formdata;a("fileAPI :"+D);var A,L=(w||k)&&!D;t.iframe!==!1&&(t.iframe||L)?t.closeKeepAlive?e.get(t.closeKeepAlive,function(){A=s(v)}):A=s(v):A=(w||k)&&D?o(v):e.ajax(t),f.removeData("jqxhr").data("jqxhr",A);for(var E=0;h.length>E;E++)h[E]=null;return this.trigger("form-submit-notify",[this,t]),this},e.fn.ajaxForm=function(n){if(n=n||{},n.delegation=n.delegation&&e.isFunction(e.fn.on),!n.delegation&&0===this.length){var i={s:this.selector,c:this.context};return!e.isReady&&i.s?(a("DOM not ready, queuing ajaxForm"),e(function(){e(i.s,i.c).ajaxForm(n)}),this):(a("terminating; zero elements found by selector"+(e.isReady?"":" (DOM not ready)")),this)}return n.delegation?(e(document).off("submit.form-plugin",this.selector,t).off("click.form-plugin",this.selector,r).on("submit.form-plugin",this.selector,n,t).on("click.form-plugin",this.selector,n,r),this):this.ajaxFormUnbind().bind("submit.form-plugin",n,t).bind("click.form-plugin",n,r)},e.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},e.fn.formToArray=function(t,r){var a=[];if(0===this.length)return a;var i=this[0],o=t?i.getElementsByTagName("*"):i.elements;if(!o)return a;var s,u,l,c,f,m,p;for(s=0,m=o.length;m>s;s++)if(f=o[s],l=f.name,l&&!f.disabled)if(t&&i.clk&&"image"==f.type)i.clk==f&&(a.push({name:l,value:e(f).val(),type:f.type}),a.push({name:l+".x",value:i.clk_x},{name:l+".y",value:i.clk_y}));else if(c=e.fieldValue(f,!0),c&&c.constructor==Array)for(r&&r.push(f),u=0,p=c.length;p>u;u++)a.push({name:l,value:c[u]});else if(n.fileapi&&"file"==f.type){r&&r.push(f);var d=f.files;if(d.length)for(u=0;d.length>u;u++)a.push({name:l,value:d[u],type:f.type});else a.push({name:l,value:"",type:f.type})}else null!==c&&c!==void 0&&(r&&r.push(f),a.push({name:l,value:c,type:f.type,required:f.required}));if(!t&&i.clk){var h=e(i.clk),v=h[0];l=v.name,l&&!v.disabled&&"image"==v.type&&(a.push({name:l,value:h.val()}),a.push({name:l+".x",value:i.clk_x},{name:l+".y",value:i.clk_y}))}return a},e.fn.formSerialize=function(t){return e.param(this.formToArray(t))},e.fn.fieldSerialize=function(t){var r=[];return this.each(function(){var a=this.name;if(a){var n=e.fieldValue(this,t);if(n&&n.constructor==Array)for(var i=0,o=n.length;o>i;i++)r.push({name:a,value:n[i]});else null!==n&&n!==void 0&&r.push({name:this.name,value:n})}}),e.param(r)},e.fn.fieldValue=function(t){for(var r=[],a=0,n=this.length;n>a;a++){var i=this[a],o=e.fieldValue(i,t);null===o||void 0===o||o.constructor==Array&&!o.length||(o.constructor==Array?e.merge(r,o):r.push(o))}return r},e.fieldValue=function(t,r){var a=t.name,n=t.type,i=t.tagName.toLowerCase();if(void 0===r&&(r=!0),r&&(!a||t.disabled||"reset"==n||"button"==n||("checkbox"==n||"radio"==n)&&!t.checked||("submit"==n||"image"==n)&&t.form&&t.form.clk!=t||"select"==i&&-1==t.selectedIndex))return null;if("select"==i){var o=t.selectedIndex;if(0>o)return null;for(var s=[],u=t.options,l="select-one"==n,c=l?o+1:u.length,f=l?o:0;c>f;f++){var m=u[f];if(m.selected){var p=m.value;if(p||(p=m.attributes&&m.attributes.value&&!m.attributes.value.specified?m.text:m.value),l)return p;s.push(p)}}return s}return e(t).val()},e.fn.clearForm=function(t){return this.each(function(){e("input,select,textarea",this).clearFields(t)})},e.fn.clearFields=e.fn.clearInputs=function(t){var r=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var a=this.type,n=this.tagName.toLowerCase();r.test(a)||"textarea"==n?this.value="":"checkbox"==a||"radio"==a?this.checked=!1:"select"==n?this.selectedIndex=-1:"file"==a?/MSIE/.test(navigator.userAgent)?e(this).replaceWith(e(this).clone(!0)):e(this).val(""):t&&(t===!0&&/hidden/.test(a)||"string"==typeof t&&e(this).is(t))&&(this.value="")})},e.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},e.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},e.fn.selected=function(t){return void 0===t&&(t=!0),this.each(function(){var r=this.type;if("checkbox"==r||"radio"==r)this.checked=t;else if("option"==this.tagName.toLowerCase()){var a=e(this).parent("select");t&&a[0]&&"select-one"==a[0].type&&a.find("option").selected(!1),this.selected=t}})},e.fn.ajaxSubmit.debug=!1})("undefined"!=typeof jQuery?jQuery:window.Zepto);
1
  /*
2
+ * jQuery Form Plugin; v20131017
3
  * http://jquery.malsup.com/form/
4
  * Copyright (c) 2013 M. Alsup; Dual licensed: MIT/GPL
5
  * https://github.com/malsup/form#copyright-and-license
6
  */
7
+ ;(function(e){"use strict";function t(t){var r=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).ajaxSubmit(r))}function r(t){var r=t.target,a=e(r);if(!a.is("[type=submit],[type=image]")){var n=a.closest("[type=submit]");if(0===n.length)return;r=n[0]}var i=this;if(i.clk=r,"image"==r.type)if(void 0!==t.offsetX)i.clk_x=t.offsetX,i.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var o=a.offset();i.clk_x=t.pageX-o.left,i.clk_y=t.pageY-o.top}else i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop;setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)}function a(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var n={};n.fileapi=void 0!==e("<input type='file'/>").get(0).files,n.formdata=void 0!==window.FormData;var i=!!e.fn.prop;e.fn.attr2=function(){if(!i)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t){function r(r){var a,n,i=e.param(r,t.traditional).split("&"),o=i.length,s=[];for(a=0;o>a;a++)i[a]=i[a].replace(/\+/g," "),n=i[a].split("="),s.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return s}function o(a){for(var n=new FormData,i=0;a.length>i;i++)n.append(a[i].name,a[i].value);if(t.extraData){var o=r(t.extraData);for(i=0;o.length>i;i++)o[i]&&n.append(o[i][0],o[i][1])}t.data=null;var s=e.extend(!0,{},e.ajaxSettings,t,{contentType:!1,processData:!1,cache:!1,type:u||"POST"});t.uploadProgress&&(s.xhr=function(){var r=e.ajaxSettings.xhr();return r.upload&&r.upload.addEventListener("progress",function(e){var r=0,a=e.loaded||e.position,n=e.total;e.lengthComputable&&(r=Math.ceil(100*(a/n))),t.uploadProgress(e,a,n,r)},!1),r}),s.data=null;var l=s.beforeSend;return s.beforeSend=function(e,r){r.data=t.formData?t.formData:n,l&&l.call(this,e,r)},e.ajax(s)}function s(r){function n(e){var t=null;try{e.contentWindow&&(t=e.contentWindow.document)}catch(r){a("cannot get iframe.contentWindow document: "+r)}if(t)return t;try{t=e.contentDocument?e.contentDocument:e.document}catch(r){a("cannot get iframe.contentDocument: "+r),t=e.document}return t}function o(){function t(){try{var e=n(g).readyState;a("state = "+e),e&&"uninitialized"==e.toLowerCase()&&setTimeout(t,50)}catch(r){a("Server abort: ",r," (",r.name,")"),s(k),j&&clearTimeout(j),j=void 0}}var r=f.attr2("target"),i=f.attr2("action");w.setAttribute("target",d),(!u||/post/i.test(u))&&w.setAttribute("method","POST"),i!=m.url&&w.setAttribute("action",m.url),m.skipEncodingOverride||u&&!/post/i.test(u)||f.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),m.timeout&&(j=setTimeout(function(){T=!0,s(D)},m.timeout));var o=[];try{if(m.extraData)for(var l in m.extraData)m.extraData.hasOwnProperty(l)&&(e.isPlainObject(m.extraData[l])&&m.extraData[l].hasOwnProperty("name")&&m.extraData[l].hasOwnProperty("value")?o.push(e('<input type="hidden" name="'+m.extraData[l].name+'">').val(m.extraData[l].value).appendTo(w)[0]):o.push(e('<input type="hidden" name="'+l+'">').val(m.extraData[l]).appendTo(w)[0]));m.iframeTarget||v.appendTo("body"),g.attachEvent?g.attachEvent("onload",s):g.addEventListener("load",s,!1),setTimeout(t,15);try{w.submit()}catch(c){var p=document.createElement("form").submit;p.apply(w)}}finally{w.setAttribute("action",i),r?w.setAttribute("target",r):f.removeAttr("target"),e(o).remove()}}function s(t){if(!x.aborted&&!F){if(M=n(g),M||(a("cannot access response document"),t=k),t===D&&x)return x.abort("timeout"),S.reject(x,"timeout"),void 0;if(t==k&&x)return x.abort("server abort"),S.reject(x,"error","server abort"),void 0;if(M&&M.location.href!=m.iframeSrc||T){g.detachEvent?g.detachEvent("onload",s):g.removeEventListener("load",s,!1);var r,i="success";try{if(T)throw"timeout";var o="xml"==m.dataType||M.XMLDocument||e.isXMLDoc(M);if(a("isXml="+o),!o&&window.opera&&(null===M.body||!M.body.innerHTML)&&--O)return a("requeing onLoad callback, DOM not available"),setTimeout(s,250),void 0;var u=M.body?M.body:M.documentElement;x.responseText=u?u.innerHTML:null,x.responseXML=M.XMLDocument?M.XMLDocument:M,o&&(m.dataType="xml"),x.getResponseHeader=function(e){var t={"content-type":m.dataType};return t[e.toLowerCase()]},u&&(x.status=Number(u.getAttribute("status"))||x.status,x.statusText=u.getAttribute("statusText")||x.statusText);var l=(m.dataType||"").toLowerCase(),c=/(json|script|text)/.test(l);if(c||m.textarea){var f=M.getElementsByTagName("textarea")[0];if(f)x.responseText=f.value,x.status=Number(f.getAttribute("status"))||x.status,x.statusText=f.getAttribute("statusText")||x.statusText;else if(c){var d=M.getElementsByTagName("pre")[0],h=M.getElementsByTagName("body")[0];d?x.responseText=d.textContent?d.textContent:d.innerText:h&&(x.responseText=h.textContent?h.textContent:h.innerText)}}else"xml"==l&&!x.responseXML&&x.responseText&&(x.responseXML=X(x.responseText));try{E=_(x,l,m)}catch(b){i="parsererror",x.error=r=b||i}}catch(b){a("error caught: ",b),i="error",x.error=r=b||i}x.aborted&&(a("upload aborted"),i=null),x.status&&(i=x.status>=200&&300>x.status||304===x.status?"success":"error"),"success"===i?(m.success&&m.success.call(m.context,E,"success",x),S.resolve(x.responseText,"success",x),p&&e.event.trigger("ajaxSuccess",[x,m])):i&&(void 0===r&&(r=x.statusText),m.error&&m.error.call(m.context,x,i,r),S.reject(x,"error",r),p&&e.event.trigger("ajaxError",[x,m,r])),p&&e.event.trigger("ajaxComplete",[x,m]),p&&!--e.active&&e.event.trigger("ajaxStop"),m.complete&&m.complete.call(m.context,x,i),F=!0,m.timeout&&clearTimeout(j),setTimeout(function(){m.iframeTarget?v.attr("src",m.iframeSrc):v.remove(),x.responseXML=null},100)}}}var l,c,m,p,d,v,g,x,b,y,T,j,w=f[0],S=e.Deferred();if(S.abort=function(e){x.abort(e)},r)for(c=0;h.length>c;c++)l=e(h[c]),i?l.prop("disabled",!1):l.removeAttr("disabled");if(m=e.extend(!0,{},e.ajaxSettings,t),m.context=m.context||m,d="jqFormIO"+(new Date).getTime(),m.iframeTarget?(v=e(m.iframeTarget),y=v.attr2("name"),y?d=y:v.attr2("name",d)):(v=e('<iframe name="'+d+'" src="'+m.iframeSrc+'" />'),v.css({position:"absolute",top:"-1000px",left:"-1000px"})),g=v[0],x={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var r="timeout"===t?"timeout":"aborted";a("aborting upload... "+r),this.aborted=1;try{g.contentWindow.document.execCommand&&g.contentWindow.document.execCommand("Stop")}catch(n){}v.attr("src",m.iframeSrc),x.error=r,m.error&&m.error.call(m.context,x,r,t),p&&e.event.trigger("ajaxError",[x,m,r]),m.complete&&m.complete.call(m.context,x,r)}},p=m.global,p&&0===e.active++&&e.event.trigger("ajaxStart"),p&&e.event.trigger("ajaxSend",[x,m]),m.beforeSend&&m.beforeSend.call(m.context,x,m)===!1)return m.global&&e.active--,S.reject(),S;if(x.aborted)return S.reject(),S;b=w.clk,b&&(y=b.name,y&&!b.disabled&&(m.extraData=m.extraData||{},m.extraData[y]=b.value,"image"==b.type&&(m.extraData[y+".x"]=w.clk_x,m.extraData[y+".y"]=w.clk_y)));var D=1,k=2,A=e("meta[name=csrf-token]").attr("content"),L=e("meta[name=csrf-param]").attr("content");L&&A&&(m.extraData=m.extraData||{},m.extraData[L]=A),m.forceSync?o():setTimeout(o,10);var E,M,F,O=50,X=e.parseXML||function(e,t){return window.ActiveXObject?(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},C=e.parseJSON||function(e){return window.eval("("+e+")")},_=function(t,r,a){var n=t.getResponseHeader("content-type")||"",i="xml"===r||!r&&n.indexOf("xml")>=0,o=i?t.responseXML:t.responseText;return i&&"parsererror"===o.documentElement.nodeName&&e.error&&e.error("parsererror"),a&&a.dataFilter&&(o=a.dataFilter(o,r)),"string"==typeof o&&("json"===r||!r&&n.indexOf("json")>=0?o=C(o):("script"===r||!r&&n.indexOf("javascript")>=0)&&e.globalEval(o)),o};return S}if(!this.length)return a("ajaxSubmit: skipping submit process - no element selected"),this;var u,l,c,f=this;"function"==typeof t?t={success:t}:void 0===t&&(t={}),u=t.type||this.attr2("method"),l=t.url||this.attr2("action"),c="string"==typeof l?e.trim(l):"",c=c||window.location.href||"",c&&(c=(c.match(/^([^#]+)/)||[])[1]),t=e.extend(!0,{url:c,success:e.ajaxSettings.success,type:u||e.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},t);var m={};if(this.trigger("form-pre-serialize",[this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(t.beforeSerialize&&t.beforeSerialize(this,t)===!1)return a("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var p=t.traditional;void 0===p&&(p=e.ajaxSettings.traditional);var d,h=[],v=this.formToArray(t.semantic,h);if(t.data&&(t.extraData=t.data,d=e.param(t.data,p)),t.beforeSubmit&&t.beforeSubmit(v,this,t)===!1)return a("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[v,this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var g=e.param(v,p);d&&(g=g?g+"&"+d:d),"GET"==t.type.toUpperCase()?(t.url+=(t.url.indexOf("?")>=0?"&":"?")+g,t.data=null):t.data=g;var x=[];if(t.resetForm&&x.push(function(){f.resetForm()}),t.clearForm&&x.push(function(){f.clearForm(t.includeHidden)}),!t.dataType&&t.target){var b=t.success||function(){};x.push(function(r){var a=t.replaceTarget?"replaceWith":"html";e(t.target)[a](r).each(b,arguments)})}else t.success&&x.push(t.success);if(t.success=function(e,r,a){for(var n=t.context||this,i=0,o=x.length;o>i;i++)x[i].apply(n,[e,r,a||f,f])},t.error){var y=t.error;t.error=function(e,r,a){var n=t.context||this;y.apply(n,[e,r,a,f])}}if(t.complete){var T=t.complete;t.complete=function(e,r){var a=t.context||this;T.apply(a,[e,r,f])}}var j=e("input[type=file]:enabled",this).filter(function(){return""!==e(this).val()}),w=j.length>0,S="multipart/form-data",D=f.attr("enctype")==S||f.attr("encoding")==S,k=n.fileapi&&n.formdata;a("fileAPI :"+k);var A,L=(w||D)&&!k;t.iframe!==!1&&(t.iframe||L)?t.closeKeepAlive?e.get(t.closeKeepAlive,function(){A=s(v)}):A=s(v):A=(w||D)&&k?o(v):e.ajax(t),f.removeData("jqxhr").data("jqxhr",A);for(var E=0;h.length>E;E++)h[E]=null;return this.trigger("form-submit-notify",[this,t]),this},e.fn.ajaxForm=function(n){if(n=n||{},n.delegation=n.delegation&&e.isFunction(e.fn.on),!n.delegation&&0===this.length){var i={s:this.selector,c:this.context};return!e.isReady&&i.s?(a("DOM not ready, queuing ajaxForm"),e(function(){e(i.s,i.c).ajaxForm(n)}),this):(a("terminating; zero elements found by selector"+(e.isReady?"":" (DOM not ready)")),this)}return n.delegation?(e(document).off("submit.form-plugin",this.selector,t).off("click.form-plugin",this.selector,r).on("submit.form-plugin",this.selector,n,t).on("click.form-plugin",this.selector,n,r),this):this.ajaxFormUnbind().bind("submit.form-plugin",n,t).bind("click.form-plugin",n,r)},e.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},e.fn.formToArray=function(t,r){var a=[];if(0===this.length)return a;var i=this[0],o=t?i.getElementsByTagName("*"):i.elements;if(!o)return a;var s,u,l,c,f,m,p;for(s=0,m=o.length;m>s;s++)if(f=o[s],l=f.name,l&&!f.disabled)if(t&&i.clk&&"image"==f.type)i.clk==f&&(a.push({name:l,value:e(f).val(),type:f.type}),a.push({name:l+".x",value:i.clk_x},{name:l+".y",value:i.clk_y}));else if(c=e.fieldValue(f,!0),c&&c.constructor==Array)for(r&&r.push(f),u=0,p=c.length;p>u;u++)a.push({name:l,value:c[u]});else if(n.fileapi&&"file"==f.type){r&&r.push(f);var d=f.files;if(d.length)for(u=0;d.length>u;u++)a.push({name:l,value:d[u],type:f.type});else a.push({name:l,value:"",type:f.type})}else null!==c&&c!==void 0&&(r&&r.push(f),a.push({name:l,value:c,type:f.type,required:f.required}));if(!t&&i.clk){var h=e(i.clk),v=h[0];l=v.name,l&&!v.disabled&&"image"==v.type&&(a.push({name:l,value:h.val()}),a.push({name:l+".x",value:i.clk_x},{name:l+".y",value:i.clk_y}))}return a},e.fn.formSerialize=function(t){return e.param(this.formToArray(t))},e.fn.fieldSerialize=function(t){var r=[];return this.each(function(){var a=this.name;if(a){var n=e.fieldValue(this,t);if(n&&n.constructor==Array)for(var i=0,o=n.length;o>i;i++)r.push({name:a,value:n[i]});else null!==n&&n!==void 0&&r.push({name:this.name,value:n})}}),e.param(r)},e.fn.fieldValue=function(t){for(var r=[],a=0,n=this.length;n>a;a++){var i=this[a],o=e.fieldValue(i,t);null===o||void 0===o||o.constructor==Array&&!o.length||(o.constructor==Array?e.merge(r,o):r.push(o))}return r},e.fieldValue=function(t,r){var a=t.name,n=t.type,i=t.tagName.toLowerCase();if(void 0===r&&(r=!0),r&&(!a||t.disabled||"reset"==n||"button"==n||("checkbox"==n||"radio"==n)&&!t.checked||("submit"==n||"image"==n)&&t.form&&t.form.clk!=t||"select"==i&&-1==t.selectedIndex))return null;if("select"==i){var o=t.selectedIndex;if(0>o)return null;for(var s=[],u=t.options,l="select-one"==n,c=l?o+1:u.length,f=l?o:0;c>f;f++){var m=u[f];if(m.selected){var p=m.value;if(p||(p=m.attributes&&m.attributes.value&&!m.attributes.value.specified?m.text:m.value),l)return p;s.push(p)}}return s}return e(t).val()},e.fn.clearForm=function(t){return this.each(function(){e("input,select,textarea",this).clearFields(t)})},e.fn.clearFields=e.fn.clearInputs=function(t){var r=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var a=this.type,n=this.tagName.toLowerCase();r.test(a)||"textarea"==n?this.value="":"checkbox"==a||"radio"==a?this.checked=!1:"select"==n?this.selectedIndex=-1:"file"==a?/MSIE/.test(navigator.userAgent)?e(this).replaceWith(e(this).clone(!0)):e(this).val(""):t&&(t===!0&&/hidden/.test(a)||"string"==typeof t&&e(this).is(t))&&(this.value="")})},e.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},e.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},e.fn.selected=function(t){return void 0===t&&(t=!0),this.each(function(){var r=this.type;if("checkbox"==r||"radio"==r)this.checked=t;else if("option"==this.tagName.toLowerCase()){var a=e(this).parent("select");t&&a[0]&&"select-one"==a[0].type&&a.find("option").selected(!1),this.selected=t}})},e.fn.ajaxSubmit.debug=!1})("undefined"!=typeof jQuery?jQuery:window.Zepto);
languages/wpcf7-de_DE.mo CHANGED
Binary file
languages/wpcf7-fa_IR.mo CHANGED
Binary file
languages/wpcf7-fr_FR.mo CHANGED
Binary file
languages/wpcf7-ro_RO.mo CHANGED
Binary file
languages/wpcf7.pot CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Contact Form 7\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-09-20 18:33+0900\n"
6
- "PO-Revision-Date: 2013-09-20 18:34+0900\n"
7
  "Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -650,8 +650,8 @@ msgstr ""
650
  #: contact-form-7/modules/acceptance.php:147
651
  #: contact-form-7/modules/captcha.php:204
652
  #: contact-form-7/modules/checkbox.php:182 contact-form-7/modules/date.php:159
653
- #: contact-form-7/modules/file.php:238 contact-form-7/modules/number.php:169
654
- #: contact-form-7/modules/quiz.php:163 contact-form-7/modules/select.php:150
655
  #: contact-form-7/modules/text.php:228 contact-form-7/modules/textarea.php:110
656
  msgid "Name"
657
  msgstr ""
@@ -671,14 +671,14 @@ msgstr ""
671
  #: contact-form-7/modules/checkbox.php:190 contact-form-7/modules/date.php:164
672
  #: contact-form-7/modules/date.php:167 contact-form-7/modules/date.php:172
673
  #: contact-form-7/modules/date.php:175 contact-form-7/modules/date.php:180
674
- #: contact-form-7/modules/date.php:185 contact-form-7/modules/file.php:243
675
- #: contact-form-7/modules/file.php:246 contact-form-7/modules/file.php:251
676
- #: contact-form-7/modules/file.php:254 contact-form-7/modules/number.php:174
677
  #: contact-form-7/modules/number.php:177 contact-form-7/modules/number.php:182
678
  #: contact-form-7/modules/number.php:185 contact-form-7/modules/number.php:190
679
- #: contact-form-7/modules/number.php:195 contact-form-7/modules/quiz.php:168
680
- #: contact-form-7/modules/quiz.php:171 contact-form-7/modules/quiz.php:176
681
- #: contact-form-7/modules/quiz.php:179 contact-form-7/modules/select.php:155
682
  #: contact-form-7/modules/select.php:158 contact-form-7/modules/submit.php:59
683
  #: contact-form-7/modules/submit.php:62 contact-form-7/modules/submit.php:67
684
  #: contact-form-7/modules/text.php:233 contact-form-7/modules/text.php:236
@@ -708,8 +708,8 @@ msgstr ""
708
  #: contact-form-7/modules/acceptance.php:168
709
  #: contact-form-7/modules/captcha.php:253
710
  #: contact-form-7/modules/checkbox.php:210 contact-form-7/modules/date.php:193
711
- #: contact-form-7/modules/file.php:259 contact-form-7/modules/number.php:203
712
- #: contact-form-7/modules/quiz.php:191 contact-form-7/modules/select.php:175
713
  #: contact-form-7/modules/submit.php:74 contact-form-7/modules/text.php:271
714
  #: contact-form-7/modules/textarea.php:144
715
  msgid "Copy this code and paste it into the form left."
@@ -800,7 +800,7 @@ msgid "Radio buttons"
800
  msgstr ""
801
 
802
  #: contact-form-7/modules/checkbox.php:179 contact-form-7/modules/date.php:158
803
- #: contact-form-7/modules/file.php:237 contact-form-7/modules/number.php:168
804
  #: contact-form-7/modules/select.php:149 contact-form-7/modules/text.php:227
805
  #: contact-form-7/modules/textarea.php:109
806
  msgid "Required field?"
@@ -868,59 +868,59 @@ msgstr ""
868
  msgid "Use this text as placeholder?"
869
  msgstr ""
870
 
871
- #: contact-form-7/modules/file.php:198
872
  msgid "Uploading a file fails for any reason"
873
  msgstr ""
874
 
875
- #: contact-form-7/modules/file.php:199
876
  msgid "Failed to upload file."
877
  msgstr ""
878
 
879
- #: contact-form-7/modules/file.php:203
880
  msgid "Uploaded file is not allowed file type"
881
  msgstr ""
882
 
883
- #: contact-form-7/modules/file.php:204
884
  msgid "This file type is not allowed."
885
  msgstr ""
886
 
887
- #: contact-form-7/modules/file.php:208
888
  msgid "Uploaded file is too large"
889
  msgstr ""
890
 
891
- #: contact-form-7/modules/file.php:209
892
  msgid "This file is too large."
893
  msgstr ""
894
 
895
- #: contact-form-7/modules/file.php:213
896
  msgid "Uploading a file fails for PHP error"
897
  msgstr ""
898
 
899
- #: contact-form-7/modules/file.php:214
900
  msgid "Failed to upload file. Error occurred."
901
  msgstr ""
902
 
903
- #: contact-form-7/modules/file.php:228
904
  msgid "File upload"
905
  msgstr ""
906
 
907
- #: contact-form-7/modules/file.php:251
908
  msgid "File size limit"
909
  msgstr ""
910
 
911
- #: contact-form-7/modules/file.php:251
912
  msgid "bytes"
913
  msgstr ""
914
 
915
- #: contact-form-7/modules/file.php:254
916
  msgid "Acceptable file types"
917
  msgstr ""
918
 
919
- #: contact-form-7/modules/file.php:261
920
  msgid "And, put this code into the File Attachments field below."
921
  msgstr ""
922
 
923
- #: contact-form-7/modules/file.php:286
924
  #, php-format
925
  msgid ""
926
  "This contact form contains file uploading fields, but the temporary folder "
@@ -967,23 +967,23 @@ msgstr ""
967
  msgid "Number (slider)"
968
  msgstr ""
969
 
970
- #: contact-form-7/modules/quiz.php:140
971
  msgid "Sender doesn't enter the correct answer to the quiz"
972
  msgstr ""
973
 
974
- #: contact-form-7/modules/quiz.php:141
975
  msgid "Your answer is not correct."
976
  msgstr ""
977
 
978
- #: contact-form-7/modules/quiz.php:154
979
  msgid "Quiz"
980
  msgstr ""
981
 
982
- #: contact-form-7/modules/quiz.php:184
983
  msgid "Quizzes"
984
  msgstr ""
985
 
986
- #: contact-form-7/modules/quiz.php:186
987
  msgid "* quiz|answer (e.g. 1+1=?|2)"
988
  msgstr ""
989
 
2
  msgstr ""
3
  "Project-Id-Version: Contact Form 7\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-11-11 23:37+0900\n"
6
+ "PO-Revision-Date: 2013-11-11 23:37+0900\n"
7
  "Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
650
  #: contact-form-7/modules/acceptance.php:147
651
  #: contact-form-7/modules/captcha.php:204
652
  #: contact-form-7/modules/checkbox.php:182 contact-form-7/modules/date.php:159
653
+ #: contact-form-7/modules/file.php:234 contact-form-7/modules/number.php:169
654
+ #: contact-form-7/modules/quiz.php:165 contact-form-7/modules/select.php:150
655
  #: contact-form-7/modules/text.php:228 contact-form-7/modules/textarea.php:110
656
  msgid "Name"
657
  msgstr ""
671
  #: contact-form-7/modules/checkbox.php:190 contact-form-7/modules/date.php:164
672
  #: contact-form-7/modules/date.php:167 contact-form-7/modules/date.php:172
673
  #: contact-form-7/modules/date.php:175 contact-form-7/modules/date.php:180
674
+ #: contact-form-7/modules/date.php:185 contact-form-7/modules/file.php:239
675
+ #: contact-form-7/modules/file.php:242 contact-form-7/modules/file.php:247
676
+ #: contact-form-7/modules/file.php:250 contact-form-7/modules/number.php:174
677
  #: contact-form-7/modules/number.php:177 contact-form-7/modules/number.php:182
678
  #: contact-form-7/modules/number.php:185 contact-form-7/modules/number.php:190
679
+ #: contact-form-7/modules/number.php:195 contact-form-7/modules/quiz.php:170
680
+ #: contact-form-7/modules/quiz.php:173 contact-form-7/modules/quiz.php:178
681
+ #: contact-form-7/modules/quiz.php:181 contact-form-7/modules/select.php:155
682
  #: contact-form-7/modules/select.php:158 contact-form-7/modules/submit.php:59
683
  #: contact-form-7/modules/submit.php:62 contact-form-7/modules/submit.php:67
684
  #: contact-form-7/modules/text.php:233 contact-form-7/modules/text.php:236
708
  #: contact-form-7/modules/acceptance.php:168
709
  #: contact-form-7/modules/captcha.php:253
710
  #: contact-form-7/modules/checkbox.php:210 contact-form-7/modules/date.php:193
711
+ #: contact-form-7/modules/file.php:255 contact-form-7/modules/number.php:203
712
+ #: contact-form-7/modules/quiz.php:193 contact-form-7/modules/select.php:175
713
  #: contact-form-7/modules/submit.php:74 contact-form-7/modules/text.php:271
714
  #: contact-form-7/modules/textarea.php:144
715
  msgid "Copy this code and paste it into the form left."
800
  msgstr ""
801
 
802
  #: contact-form-7/modules/checkbox.php:179 contact-form-7/modules/date.php:158
803
+ #: contact-form-7/modules/file.php:233 contact-form-7/modules/number.php:168
804
  #: contact-form-7/modules/select.php:149 contact-form-7/modules/text.php:227
805
  #: contact-form-7/modules/textarea.php:109
806
  msgid "Required field?"
868
  msgid "Use this text as placeholder?"
869
  msgstr ""
870
 
871
+ #: contact-form-7/modules/file.php:194
872
  msgid "Uploading a file fails for any reason"
873
  msgstr ""
874
 
875
+ #: contact-form-7/modules/file.php:195
876
  msgid "Failed to upload file."
877
  msgstr ""
878
 
879
+ #: contact-form-7/modules/file.php:199
880
  msgid "Uploaded file is not allowed file type"
881
  msgstr ""
882
 
883
+ #: contact-form-7/modules/file.php:200
884
  msgid "This file type is not allowed."
885
  msgstr ""
886
 
887
+ #: contact-form-7/modules/file.php:204
888
  msgid "Uploaded file is too large"
889
  msgstr ""
890
 
891
+ #: contact-form-7/modules/file.php:205
892
  msgid "This file is too large."
893
  msgstr ""
894
 
895
+ #: contact-form-7/modules/file.php:209
896
  msgid "Uploading a file fails for PHP error"
897
  msgstr ""
898
 
899
+ #: contact-form-7/modules/file.php:210
900
  msgid "Failed to upload file. Error occurred."
901
  msgstr ""
902
 
903
+ #: contact-form-7/modules/file.php:224
904
  msgid "File upload"
905
  msgstr ""
906
 
907
+ #: contact-form-7/modules/file.php:247
908
  msgid "File size limit"
909
  msgstr ""
910
 
911
+ #: contact-form-7/modules/file.php:247
912
  msgid "bytes"
913
  msgstr ""
914
 
915
+ #: contact-form-7/modules/file.php:250
916
  msgid "Acceptable file types"
917
  msgstr ""
918
 
919
+ #: contact-form-7/modules/file.php:257
920
  msgid "And, put this code into the File Attachments field below."
921
  msgstr ""
922
 
923
+ #: contact-form-7/modules/file.php:282
924
  #, php-format
925
  msgid ""
926
  "This contact form contains file uploading fields, but the temporary folder "
967
  msgid "Number (slider)"
968
  msgstr ""
969
 
970
+ #: contact-form-7/modules/quiz.php:142
971
  msgid "Sender doesn't enter the correct answer to the quiz"
972
  msgstr ""
973
 
974
+ #: contact-form-7/modules/quiz.php:143
975
  msgid "Your answer is not correct."
976
  msgstr ""
977
 
978
+ #: contact-form-7/modules/quiz.php:156
979
  msgid "Quiz"
980
  msgstr ""
981
 
982
+ #: contact-form-7/modules/quiz.php:186
983
  msgid "Quizzes"
984
  msgstr ""
985
 
986
+ #: contact-form-7/modules/quiz.php:188
987
  msgid "* quiz|answer (e.g. 1+1=?|2)"
988
  msgstr ""
989
 
modules/quiz.php CHANGED
@@ -71,6 +71,8 @@ function wpcf7_quiz_validation_filter( $result, $tag ) {
71
  $name = $tag->name;
72
 
73
  $answer = isset( $_POST[$name] ) ? wpcf7_canonicalize( $_POST[$name] ) : '';
 
 
74
  $answer_hash = wp_hash( $answer, 'wpcf7_quiz' );
75
 
76
  $expected_hash = isset( $_POST['_wpcf7_quiz_answer_' . $name] )
71
  $name = $tag->name;
72
 
73
  $answer = isset( $_POST[$name] ) ? wpcf7_canonicalize( $_POST[$name] ) : '';
74
+ $answer = stripslashes( $answer );
75
+
76
  $answer_hash = wp_hash( $answer, 'wpcf7_quiz' );
77
 
78
  $expected_hash = isset( $_POST['_wpcf7_quiz_answer_' . $name] )
modules/text.php CHANGED
@@ -112,7 +112,7 @@ function wpcf7_text_validation_filter( $result, $tag ) {
112
  $name = $tag->name;
113
 
114
  $value = isset( $_POST[$name] )
115
- ? trim( strtr( (string) $_POST[$name], "\n", " " ) )
116
  : '';
117
 
118
  if ( 'text*' == $tag->type ) {
112
  $name = $tag->name;
113
 
114
  $value = isset( $_POST[$name] )
115
+ ? trim( stripslashes( strtr( (string) $_POST[$name], "\n", " " ) ) )
116
  : '';
117
 
118
  if ( 'text*' == $tag->type ) {
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: takayukister
3
  Donate link: http://contactform7.com/donate/
4
  Tags: contact, form, contact form, feedback, email, ajax, captcha, akismet, multilingual
5
  Requires at least: 3.5
6
- Tested up to: 3.6.1
7
- Stable tag: 3.5.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -76,11 +76,11 @@ The following are other recommended plugins by the author of Contact Form 7.
76
  * Malayalam (ml_IN) - [RAHUL.S.A](http://www.infution.co.cc/)
77
  * Maltese (mt_MT) - [Ajoft Technologies](http://www.ajoft.com/)
78
  * Norwegian (nb_NO) - Kjetil M. Bergem, [aanvik.net](http://www.aanvik.net), [Peter Holme](http://holme.se/nettsteder/)
79
- * Persian (Farsi; fa_IR) - [Mohammad Musavi](http://www.musavis.com/), [Mohsen Firoozmandan](http://www.rankbazar.com/)
80
  * Polish (pl_PL) - [Zbigniew Czernik](http://zibik.jogger.pl/), [Daniel Fruzynski](http://www.poradnik-webmastera.com), [RafalDesign](http://www.rafaldesign.pl/), [Bartosz Arendt](http://digitalfactory.pl/)
81
  * Portuguese (pt_PT) - [Hugo Baeta](http://hugobaeta.com), [Pedro Nave](http://pedronave.com/)
82
  * Russian (ru_RU) - Dmitry Volotovich, [Denis Voituk](http://artprima.cz/), [kg69design](http://kg69design.com/)
83
- * Romanian (ro_RO) - [Stas Sushkov](http://stas.nerd.ro/), [Anunturi Jibo](http://www.jibo.ro/), [Marius Olar](http://webdudes.ro/)
84
  * Serbian (sr_RS) - [Vedran](http://www.seorabbit.com/), [Aleksandar Urošević](http://blog.urosevic.net/)
85
  * Sinhala (si_LK) - [Nitin Aggarwal](http://offshoreally.com/)
86
  * Slovak (sk_SK) - [Patrik Bóna](http://www.mrhead.sk/), [WordPress Slovakia](http://wp.sk/)
@@ -121,6 +121,12 @@ Do you have questions or issues with Contact Form 7? Use these support channels
121
 
122
  == Changelog ==
123
 
 
 
 
 
 
 
124
  = 3.5.3 =
125
 
126
  * Checking of file extension when uploading has been enhanced.
3
  Donate link: http://contactform7.com/donate/
4
  Tags: contact, form, contact form, feedback, email, ajax, captcha, akismet, multilingual
5
  Requires at least: 3.5
6
+ Tested up to: 3.7.1
7
+ Stable tag: 3.5.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
76
  * Malayalam (ml_IN) - [RAHUL.S.A](http://www.infution.co.cc/)
77
  * Maltese (mt_MT) - [Ajoft Technologies](http://www.ajoft.com/)
78
  * Norwegian (nb_NO) - Kjetil M. Bergem, [aanvik.net](http://www.aanvik.net), [Peter Holme](http://holme.se/nettsteder/)
79
+ * Persian (Farsi; fa_IR) - [Mohammad Musavi](http://www.musavis.com/), [Mohsen Firoozmandan](http://www.rankbazar.com/), Ghaem Omidi
80
  * Polish (pl_PL) - [Zbigniew Czernik](http://zibik.jogger.pl/), [Daniel Fruzynski](http://www.poradnik-webmastera.com), [RafalDesign](http://www.rafaldesign.pl/), [Bartosz Arendt](http://digitalfactory.pl/)
81
  * Portuguese (pt_PT) - [Hugo Baeta](http://hugobaeta.com), [Pedro Nave](http://pedronave.com/)
82
  * Russian (ru_RU) - Dmitry Volotovich, [Denis Voituk](http://artprima.cz/), [kg69design](http://kg69design.com/)
83
+ * Romanian (ro_RO) - [Stas Sushkov](http://stas.nerd.ro/), [Anunturi Jibo](http://www.jibo.ro/), [Marius Olar](http://webdudes.ro/), [Flo Bejgu](http://inboxtranslation.com/)
84
  * Serbian (sr_RS) - [Vedran](http://www.seorabbit.com/), [Aleksandar Urošević](http://blog.urosevic.net/)
85
  * Sinhala (si_LK) - [Nitin Aggarwal](http://offshoreally.com/)
86
  * Slovak (sk_SK) - [Patrik Bóna](http://www.mrhead.sk/), [WordPress Slovakia](http://wp.sk/)
121
 
122
  == Changelog ==
123
 
124
+ = 3.5.4 =
125
+
126
+ * Fixed: Strip slashes from some text inputs before validating them.
127
+ * The jQuery Form Plugin (jquery.form.js) has been updated to 3.45.0.
128
+ * Translations for German, French, Persian and Romanian have been updated.
129
+
130
  = 3.5.3 =
131
 
132
  * Checking of file extension when uploading has been enhanced.
settings.php CHANGED
@@ -13,6 +13,22 @@ if ( is_admin() )
13
  else
14
  require_once WPCF7_PLUGIN_DIR . '/includes/controller.php';
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  add_action( 'plugins_loaded', 'wpcf7_init_shortcode_manager', 1 );
17
 
18
  function wpcf7_init_shortcode_manager() {
@@ -54,8 +70,6 @@ function wpcf7_get_request_uri() {
54
  add_action( 'init', 'wpcf7_init' );
55
 
56
  function wpcf7_init() {
57
- wpcf7();
58
-
59
  // L10N
60
  wpcf7_load_plugin_textdomain();
61
 
@@ -65,20 +79,6 @@ function wpcf7_init() {
65
  do_action( 'wpcf7_init' );
66
  }
67
 
68
- function wpcf7() {
69
- global $wpcf7;
70
-
71
- if ( is_object( $wpcf7 ) )
72
- return;
73
-
74
- $wpcf7 = (object) array(
75
- 'processing_within' => '',
76
- 'widget_count' => 0,
77
- 'unit_count' => 0,
78
- 'global_unit_count' => 0,
79
- 'result' => array() );
80
- }
81
-
82
  function wpcf7_load_plugin_textdomain() {
83
  load_plugin_textdomain( 'wpcf7', false, 'contact-form-7/languages' );
84
  }
13
  else
14
  require_once WPCF7_PLUGIN_DIR . '/includes/controller.php';
15
 
16
+ add_action( 'plugins_loaded', 'wpcf7', 1 );
17
+
18
+ function wpcf7() {
19
+ global $wpcf7;
20
+
21
+ if ( is_object( $wpcf7 ) )
22
+ return;
23
+
24
+ $wpcf7 = (object) array(
25
+ 'processing_within' => '',
26
+ 'widget_count' => 0,
27
+ 'unit_count' => 0,
28
+ 'global_unit_count' => 0,
29
+ 'result' => array() );
30
+ }
31
+
32
  add_action( 'plugins_loaded', 'wpcf7_init_shortcode_manager', 1 );
33
 
34
  function wpcf7_init_shortcode_manager() {
70
  add_action( 'init', 'wpcf7_init' );
71
 
72
  function wpcf7_init() {
 
 
73
  // L10N
74
  wpcf7_load_plugin_textdomain();
75
 
79
  do_action( 'wpcf7_init' );
80
  }
81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  function wpcf7_load_plugin_textdomain() {
83
  load_plugin_textdomain( 'wpcf7', false, 'contact-form-7/languages' );
84
  }
wp-contact-form-7.php CHANGED
@@ -7,7 +7,7 @@ Author: Takayuki Miyoshi
7
  Author URI: http://ideasilo.wordpress.com/
8
  Text Domain: wpcf7
9
  Domain Path: /languages/
10
- Version: 3.5.3
11
  */
12
 
13
  /* Copyright 2007-2013 Takayuki Miyoshi (email: takayukister at gmail.com)
@@ -27,7 +27,7 @@ Version: 3.5.3
27
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28
  */
29
 
30
- define( 'WPCF7_VERSION', '3.5.3' );
31
 
32
  define( 'WPCF7_REQUIRED_WP_VERSION', '3.5' );
33
 
7
  Author URI: http://ideasilo.wordpress.com/
8
  Text Domain: wpcf7
9
  Domain Path: /languages/
10
+ Version: 3.5.4
11
  */
12
 
13
  /* Copyright 2007-2013 Takayuki Miyoshi (email: takayukister at gmail.com)
27
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28
  */
29
 
30
+ define( 'WPCF7_VERSION', '3.5.4' );
31
 
32
  define( 'WPCF7_REQUIRED_WP_VERSION', '3.5' );
33