Contact Form 7 - Version 3.5.3

Version Description

  • Checking of file extension when uploading has been enhanced.
  • The jQuery Form Plugin (jquery.form.js) has been updated to 3.44.0.
  • Translation for Central Kurdish (ckb) has been created.
  • Translations for German, Hungarian and Japanese have been updated.
Download this release

Release Info

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

Code changes from version 3.5.2 to 3.5.3

admin/edit-contact-form.php CHANGED
@@ -65,7 +65,7 @@ if ( $post ) :
65
  <?php if ( current_user_can( 'wpcf7_edit_contact_form', $post_id ) && ! $post->initial ) : ?>
66
  <div class="actions-link">
67
  <?php $copy_nonce = wp_create_nonce( 'wpcf7-copy-contact-form_' . $post_id ); ?>
68
- <input type="submit" name="wpcf7-copy" class="copy" value="<?php echo esc_attr( __( 'Copy', 'wpcf7' ) ); ?>"
69
  <?php echo "onclick=\"this.form._wpnonce.value = '$copy_nonce'; this.form.action.value = 'copy'; return true;\""; ?> />
70
  |
71
 
65
  <?php if ( current_user_can( 'wpcf7_edit_contact_form', $post_id ) && ! $post->initial ) : ?>
66
  <div class="actions-link">
67
  <?php $copy_nonce = wp_create_nonce( 'wpcf7-copy-contact-form_' . $post_id ); ?>
68
+ <input type="submit" name="wpcf7-copy" class="copy" value="<?php echo esc_attr( __( 'Duplicate', 'wpcf7' ) ); ?>"
69
  <?php echo "onclick=\"this.form._wpnonce.value = '$copy_nonce'; this.form.action.value = 'copy'; return true;\""; ?> />
70
  |
71
 
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.40.0-2013.08.13', 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.44.0-2013.09.15', true );
232
 
233
  $in_footer = true;
234
  if ( 'header' === WPCF7_LOAD_JS )
includes/formatting.php CHANGED
@@ -153,4 +153,31 @@ function wpcf7_is_date( $date ) {
153
  return apply_filters( 'wpcf7_is_date', $result, $date );
154
  }
155
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156
  ?>
153
  return apply_filters( 'wpcf7_is_date', $result, $date );
154
  }
155
 
156
+ function wpcf7_antiscript_file_name( $filename ) {
157
+ $filename = basename( $filename );
158
+ $parts = explode( '.', $filename );
159
+
160
+ if ( count( $parts ) < 2 )
161
+ return $filename;
162
+
163
+ $script_pattern = '/^(php|phtml|pl|py|rb|cgi|asp|aspx)\d?$/i';
164
+
165
+ $filename = array_shift( $parts );
166
+ $extension = array_pop( $parts );
167
+
168
+ foreach ( (array) $parts as $part ) {
169
+ if ( preg_match( $script_pattern, $part ) )
170
+ $filename .= '.' . $part . '_';
171
+ else
172
+ $filename .= '.' . $part;
173
+ }
174
+
175
+ if ( preg_match( $script_pattern, $extension ) )
176
+ $filename .= '.' . $extension . '_.txt';
177
+ else
178
+ $filename .= '.' . $extension;
179
+
180
+ return $filename;
181
+ }
182
+
183
  ?>
includes/functions.php CHANGED
@@ -173,6 +173,7 @@ function wpcf7_l10n() {
173
  'pt_BR' => __( 'Brazilian Portuguese', 'wpcf7' ),
174
  'bg_BG' => __( 'Bulgarian', 'wpcf7' ),
175
  'ca' => __( 'Catalan', 'wpcf7' ),
 
176
  'zh_CN' => __( 'Chinese (Simplified)', 'wpcf7' ),
177
  'zh_TW' => __( 'Chinese (Traditional)', 'wpcf7' ),
178
  'hr' => __( 'Croatian', 'wpcf7' ),
173
  'pt_BR' => __( 'Brazilian Portuguese', 'wpcf7' ),
174
  'bg_BG' => __( 'Bulgarian', 'wpcf7' ),
175
  'ca' => __( 'Catalan', 'wpcf7' ),
176
+ 'ckb' => __( 'Central Kurdish', 'wpcf7' ),
177
  'zh_CN' => __( 'Chinese (Simplified)', 'wpcf7' ),
178
  'zh_TW' => __( 'Chinese (Traditional)', 'wpcf7' ),
179
  'hr' => __( 'Croatian', 'wpcf7' ),
includes/js/jquery.form.js CHANGED
@@ -1,7 +1,7 @@
1
  /*!
2
  * jQuery Form Plugin
3
- * version: 3.40.0-2013.08.13
4
- * @requires jQuery v1.5 or later
5
  * Copyright (c) 2013 M. Alsup
6
  * Examples and documentation at: http://malsup.com/jquery/form/
7
  * Project repository: https://github.com/malsup/form
@@ -209,7 +209,7 @@ $.fn.ajaxSubmit = function(options) {
209
 
210
  // [value] (issue #113), also see comment:
211
  // https://github.com/malsup/form/commit/588306aedba1de01388032d5f42a60159eea9228#commitcomment-2180219
212
- var fileInputs = $('input[type=file]:enabled:not([value=""])', this);
213
 
214
  var hasFileInputs = fileInputs.length > 0;
215
  var mp = 'multipart/form-data';
@@ -479,7 +479,7 @@ $.fn.ajaxSubmit = function(options) {
479
 
480
  // update form attrs in IE friendly way
481
  form.setAttribute('target',id);
482
- if (!method) {
483
  form.setAttribute('method', 'POST');
484
  }
485
  if (a != s.url) {
@@ -539,11 +539,11 @@ $.fn.ajaxSubmit = function(options) {
539
  if (!s.iframeTarget) {
540
  // add iframe to doc and submit the form
541
  $io.appendTo('body');
542
- if (io.attachEvent)
543
- io.attachEvent('onload', cb);
544
- else
545
- io.addEventListener('load', cb, false);
546
  }
 
 
 
 
547
  setTimeout(checkState,15);
548
 
549
  try {
@@ -729,6 +729,8 @@ $.fn.ajaxSubmit = function(options) {
729
  setTimeout(function() {
730
  if (!s.iframeTarget)
731
  $io.remove();
 
 
732
  xhr.responseXML = null;
733
  }, 100);
734
  }
@@ -830,7 +832,7 @@ function doAjaxSubmit(e) {
830
  var options = e.data;
831
  if (!e.isDefaultPrevented()) { // if event has been canceled, don't proceed
832
  e.preventDefault();
833
- $(this).ajaxSubmit(options);
834
  }
835
  }
836
 
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/
7
  * Project repository: https://github.com/malsup/form
209
 
210
  // [value] (issue #113), also see comment:
211
  // https://github.com/malsup/form/commit/588306aedba1de01388032d5f42a60159eea9228#commitcomment-2180219
212
+ var fileInputs = $('input[type=file]:enabled', this).filter(function() { return $(this).val() !== ''; });
213
 
214
  var hasFileInputs = fileInputs.length > 0;
215
  var mp = 'multipart/form-data';
479
 
480
  // update form attrs in IE friendly way
481
  form.setAttribute('target',id);
482
+ if (!method || /post/i.test(method) ) {
483
  form.setAttribute('method', 'POST');
484
  }
485
  if (a != s.url) {
539
  if (!s.iframeTarget) {
540
  // add iframe to doc and submit the form
541
  $io.appendTo('body');
 
 
 
 
542
  }
543
+ if (io.attachEvent)
544
+ io.attachEvent('onload', cb);
545
+ else
546
+ io.addEventListener('load', cb, false);
547
  setTimeout(checkState,15);
548
 
549
  try {
729
  setTimeout(function() {
730
  if (!s.iframeTarget)
731
  $io.remove();
732
+ else //adding else to clean up existing iframe response.
733
+ $io.attr('src', s.iframeSrc);
734
  xhr.responseXML = null;
735
  }, 100);
736
  }
832
  var options = e.data;
833
  if (!e.isDefaultPrevented()) { // if event has been canceled, don't proceed
834
  e.preventDefault();
835
+ $(e.target).ajaxSubmit(options); // #365
836
  }
837
  }
838
 
includes/js/jquery.form.min.js CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
- * jQuery Form Plugin; v20130813
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(this).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||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.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:not([value=""])',this),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; 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);
languages/wpcf7-ckb.mo ADDED
Binary file
languages/wpcf7-de_DE.mo CHANGED
Binary file
languages/wpcf7-hu_HU.mo CHANGED
Binary file
languages/wpcf7-ja.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-08-09 16:36+0900\n"
6
- "PO-Revision-Date: 2013-08-09 16:36+0900\n"
7
  "Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -193,8 +193,7 @@ msgid "Save"
193
  msgstr ""
194
 
195
  #: contact-form-7/admin/edit-contact-form.php:68
196
- #: contact-form-7/admin/includes/class-contact-forms-list-table.php:112
197
- msgid "Copy"
198
  msgstr ""
199
 
200
  #: contact-form-7/admin/edit-contact-form.php:73
@@ -225,6 +224,10 @@ msgstr ""
225
  msgid "Date"
226
  msgstr ""
227
 
 
 
 
 
228
  #: contact-form-7/admin/includes/class-contact-forms-list-table.php:117
229
  #, php-format
230
  msgid "Edit &#8220;%s&#8221;"
@@ -275,7 +278,7 @@ msgstr ""
275
  msgid "Contact Form"
276
  msgstr ""
277
 
278
- #: contact-form-7/includes/classes.php:833
279
  msgid "Untitled"
280
  msgstr ""
281
 
@@ -441,198 +444,202 @@ msgid "Catalan"
441
  msgstr ""
442
 
443
  #: contact-form-7/includes/functions.php:176
444
- msgid "Chinese (Simplified)"
445
  msgstr ""
446
 
447
  #: contact-form-7/includes/functions.php:177
448
- msgid "Chinese (Traditional)"
449
  msgstr ""
450
 
451
  #: contact-form-7/includes/functions.php:178
452
- msgid "Croatian"
453
  msgstr ""
454
 
455
  #: contact-form-7/includes/functions.php:179
456
- msgid "Czech"
457
  msgstr ""
458
 
459
  #: contact-form-7/includes/functions.php:180
460
- msgid "Danish"
461
  msgstr ""
462
 
463
  #: contact-form-7/includes/functions.php:181
464
- msgid "Dutch"
465
  msgstr ""
466
 
467
  #: contact-form-7/includes/functions.php:182
468
- msgid "English"
469
  msgstr ""
470
 
471
  #: contact-form-7/includes/functions.php:183
472
- msgid "Esperanto"
473
  msgstr ""
474
 
475
  #: contact-form-7/includes/functions.php:184
476
- msgid "Estonian"
477
  msgstr ""
478
 
479
  #: contact-form-7/includes/functions.php:185
480
- msgid "Finnish"
481
  msgstr ""
482
 
483
  #: contact-form-7/includes/functions.php:186
484
- msgid "French"
485
  msgstr ""
486
 
487
  #: contact-form-7/includes/functions.php:187
488
- msgid "Galician"
489
  msgstr ""
490
 
491
  #: contact-form-7/includes/functions.php:188
492
- msgid "Gujarati"
493
  msgstr ""
494
 
495
  #: contact-form-7/includes/functions.php:189
496
- msgid "Georgian"
497
  msgstr ""
498
 
499
  #: contact-form-7/includes/functions.php:190
500
- msgid "German"
501
  msgstr ""
502
 
503
  #: contact-form-7/includes/functions.php:191
504
- msgid "Greek"
505
  msgstr ""
506
 
507
  #: contact-form-7/includes/functions.php:192
508
- msgid "Hebrew"
509
  msgstr ""
510
 
511
  #: contact-form-7/includes/functions.php:193
512
- msgid "Hindi"
513
  msgstr ""
514
 
515
  #: contact-form-7/includes/functions.php:194
516
- msgid "Hungarian"
517
  msgstr ""
518
 
519
  #: contact-form-7/includes/functions.php:195
520
- msgid "Indian Bengali"
521
  msgstr ""
522
 
523
  #: contact-form-7/includes/functions.php:196
524
- msgid "Indonesian"
525
  msgstr ""
526
 
527
  #: contact-form-7/includes/functions.php:197
528
- msgid "Irish"
529
  msgstr ""
530
 
531
  #: contact-form-7/includes/functions.php:198
532
- msgid "Italian"
533
  msgstr ""
534
 
535
  #: contact-form-7/includes/functions.php:199
536
- msgid "Japanese"
537
  msgstr ""
538
 
539
  #: contact-form-7/includes/functions.php:200
540
- msgid "Korean"
541
  msgstr ""
542
 
543
  #: contact-form-7/includes/functions.php:201
544
- msgid "Latvian"
545
  msgstr ""
546
 
547
  #: contact-form-7/includes/functions.php:202
548
- msgid "Lithuanian"
549
  msgstr ""
550
 
551
  #: contact-form-7/includes/functions.php:203
552
- msgid "Macedonian"
553
  msgstr ""
554
 
555
  #: contact-form-7/includes/functions.php:204
556
- msgid "Malay"
557
  msgstr ""
558
 
559
  #: contact-form-7/includes/functions.php:205
560
- msgid "Malayalam"
561
  msgstr ""
562
 
563
  #: contact-form-7/includes/functions.php:206
564
- msgid "Maltese"
565
  msgstr ""
566
 
567
  #: contact-form-7/includes/functions.php:207
568
- msgid "Norwegian"
569
  msgstr ""
570
 
571
  #: contact-form-7/includes/functions.php:208
572
- msgid "Persian"
573
  msgstr ""
574
 
575
  #: contact-form-7/includes/functions.php:209
576
- msgid "Polish"
577
  msgstr ""
578
 
579
  #: contact-form-7/includes/functions.php:210
580
- msgid "Portuguese"
581
  msgstr ""
582
 
583
  #: contact-form-7/includes/functions.php:211
584
- msgid "Russian"
585
  msgstr ""
586
 
587
  #: contact-form-7/includes/functions.php:212
588
- msgid "Romanian"
589
  msgstr ""
590
 
591
  #: contact-form-7/includes/functions.php:213
592
- msgid "Serbian"
593
  msgstr ""
594
 
595
  #: contact-form-7/includes/functions.php:214
596
- msgid "Sinhala"
597
  msgstr ""
598
 
599
  #: contact-form-7/includes/functions.php:215
600
- msgid "Slovak"
601
  msgstr ""
602
 
603
  #: contact-form-7/includes/functions.php:216
604
- msgid "Slovene"
605
  msgstr ""
606
 
607
  #: contact-form-7/includes/functions.php:217
608
- msgid "Spanish"
609
  msgstr ""
610
 
611
  #: contact-form-7/includes/functions.php:218
612
- msgid "Swedish"
613
  msgstr ""
614
 
615
  #: contact-form-7/includes/functions.php:219
616
- msgid "Tamil"
617
  msgstr ""
618
 
619
  #: contact-form-7/includes/functions.php:220
620
- msgid "Thai"
621
  msgstr ""
622
 
623
  #: contact-form-7/includes/functions.php:221
624
- msgid "Tagalog"
625
  msgstr ""
626
 
627
  #: contact-form-7/includes/functions.php:222
628
- msgid "Turkish"
629
  msgstr ""
630
 
631
  #: contact-form-7/includes/functions.php:223
632
- msgid "Ukrainian"
633
  msgstr ""
634
 
635
  #: contact-form-7/includes/functions.php:224
 
 
 
 
636
  msgid "Vietnamese"
637
  msgstr ""
638
 
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"
193
  msgstr ""
194
 
195
  #: contact-form-7/admin/edit-contact-form.php:68
196
+ msgid "Duplicate"
 
197
  msgstr ""
198
 
199
  #: contact-form-7/admin/edit-contact-form.php:73
224
  msgid "Date"
225
  msgstr ""
226
 
227
+ #: contact-form-7/admin/includes/class-contact-forms-list-table.php:112
228
+ msgid "Copy"
229
+ msgstr ""
230
+
231
  #: contact-form-7/admin/includes/class-contact-forms-list-table.php:117
232
  #, php-format
233
  msgid "Edit &#8220;%s&#8221;"
278
  msgid "Contact Form"
279
  msgstr ""
280
 
281
+ #: contact-form-7/includes/classes.php:832
282
  msgid "Untitled"
283
  msgstr ""
284
 
444
  msgstr ""
445
 
446
  #: contact-form-7/includes/functions.php:176
447
+ msgid "Central Kurdish"
448
  msgstr ""
449
 
450
  #: contact-form-7/includes/functions.php:177
451
+ msgid "Chinese (Simplified)"
452
  msgstr ""
453
 
454
  #: contact-form-7/includes/functions.php:178
455
+ msgid "Chinese (Traditional)"
456
  msgstr ""
457
 
458
  #: contact-form-7/includes/functions.php:179
459
+ msgid "Croatian"
460
  msgstr ""
461
 
462
  #: contact-form-7/includes/functions.php:180
463
+ msgid "Czech"
464
  msgstr ""
465
 
466
  #: contact-form-7/includes/functions.php:181
467
+ msgid "Danish"
468
  msgstr ""
469
 
470
  #: contact-form-7/includes/functions.php:182
471
+ msgid "Dutch"
472
  msgstr ""
473
 
474
  #: contact-form-7/includes/functions.php:183
475
+ msgid "English"
476
  msgstr ""
477
 
478
  #: contact-form-7/includes/functions.php:184
479
+ msgid "Esperanto"
480
  msgstr ""
481
 
482
  #: contact-form-7/includes/functions.php:185
483
+ msgid "Estonian"
484
  msgstr ""
485
 
486
  #: contact-form-7/includes/functions.php:186
487
+ msgid "Finnish"
488
  msgstr ""
489
 
490
  #: contact-form-7/includes/functions.php:187
491
+ msgid "French"
492
  msgstr ""
493
 
494
  #: contact-form-7/includes/functions.php:188
495
+ msgid "Galician"
496
  msgstr ""
497
 
498
  #: contact-form-7/includes/functions.php:189
499
+ msgid "Gujarati"
500
  msgstr ""
501
 
502
  #: contact-form-7/includes/functions.php:190
503
+ msgid "Georgian"
504
  msgstr ""
505
 
506
  #: contact-form-7/includes/functions.php:191
507
+ msgid "German"
508
  msgstr ""
509
 
510
  #: contact-form-7/includes/functions.php:192
511
+ msgid "Greek"
512
  msgstr ""
513
 
514
  #: contact-form-7/includes/functions.php:193
515
+ msgid "Hebrew"
516
  msgstr ""
517
 
518
  #: contact-form-7/includes/functions.php:194
519
+ msgid "Hindi"
520
  msgstr ""
521
 
522
  #: contact-form-7/includes/functions.php:195
523
+ msgid "Hungarian"
524
  msgstr ""
525
 
526
  #: contact-form-7/includes/functions.php:196
527
+ msgid "Indian Bengali"
528
  msgstr ""
529
 
530
  #: contact-form-7/includes/functions.php:197
531
+ msgid "Indonesian"
532
  msgstr ""
533
 
534
  #: contact-form-7/includes/functions.php:198
535
+ msgid "Irish"
536
  msgstr ""
537
 
538
  #: contact-form-7/includes/functions.php:199
539
+ msgid "Italian"
540
  msgstr ""
541
 
542
  #: contact-form-7/includes/functions.php:200
543
+ msgid "Japanese"
544
  msgstr ""
545
 
546
  #: contact-form-7/includes/functions.php:201
547
+ msgid "Korean"
548
  msgstr ""
549
 
550
  #: contact-form-7/includes/functions.php:202
551
+ msgid "Latvian"
552
  msgstr ""
553
 
554
  #: contact-form-7/includes/functions.php:203
555
+ msgid "Lithuanian"
556
  msgstr ""
557
 
558
  #: contact-form-7/includes/functions.php:204
559
+ msgid "Macedonian"
560
  msgstr ""
561
 
562
  #: contact-form-7/includes/functions.php:205
563
+ msgid "Malay"
564
  msgstr ""
565
 
566
  #: contact-form-7/includes/functions.php:206
567
+ msgid "Malayalam"
568
  msgstr ""
569
 
570
  #: contact-form-7/includes/functions.php:207
571
+ msgid "Maltese"
572
  msgstr ""
573
 
574
  #: contact-form-7/includes/functions.php:208
575
+ msgid "Norwegian"
576
  msgstr ""
577
 
578
  #: contact-form-7/includes/functions.php:209
579
+ msgid "Persian"
580
  msgstr ""
581
 
582
  #: contact-form-7/includes/functions.php:210
583
+ msgid "Polish"
584
  msgstr ""
585
 
586
  #: contact-form-7/includes/functions.php:211
587
+ msgid "Portuguese"
588
  msgstr ""
589
 
590
  #: contact-form-7/includes/functions.php:212
591
+ msgid "Russian"
592
  msgstr ""
593
 
594
  #: contact-form-7/includes/functions.php:213
595
+ msgid "Romanian"
596
  msgstr ""
597
 
598
  #: contact-form-7/includes/functions.php:214
599
+ msgid "Serbian"
600
  msgstr ""
601
 
602
  #: contact-form-7/includes/functions.php:215
603
+ msgid "Sinhala"
604
  msgstr ""
605
 
606
  #: contact-form-7/includes/functions.php:216
607
+ msgid "Slovak"
608
  msgstr ""
609
 
610
  #: contact-form-7/includes/functions.php:217
611
+ msgid "Slovene"
612
  msgstr ""
613
 
614
  #: contact-form-7/includes/functions.php:218
615
+ msgid "Spanish"
616
  msgstr ""
617
 
618
  #: contact-form-7/includes/functions.php:219
619
+ msgid "Swedish"
620
  msgstr ""
621
 
622
  #: contact-form-7/includes/functions.php:220
623
+ msgid "Tamil"
624
  msgstr ""
625
 
626
  #: contact-form-7/includes/functions.php:221
627
+ msgid "Thai"
628
  msgstr ""
629
 
630
  #: contact-form-7/includes/functions.php:222
631
+ msgid "Tagalog"
632
  msgstr ""
633
 
634
  #: contact-form-7/includes/functions.php:223
635
+ msgid "Turkish"
636
  msgstr ""
637
 
638
  #: contact-form-7/includes/functions.php:224
639
+ msgid "Ukrainian"
640
+ msgstr ""
641
+
642
+ #: contact-form-7/includes/functions.php:225
643
  msgid "Vietnamese"
644
  msgstr ""
645
 
modules/file.php CHANGED
@@ -159,11 +159,7 @@ function wpcf7_file_validation_filter( $result, $tag ) {
159
  wpcf7_init_uploads(); // Confirm upload dir
160
 
161
  $filename = $file['name'];
162
-
163
- // If you get script file, it's a danger. Make it TXT file.
164
- if ( preg_match( '/\.(php|pl|py|rb|cgi)\d?$/', $filename ) )
165
- $filename .= '.txt';
166
-
167
  $filename = wp_unique_filename( $uploads_dir, $filename );
168
 
169
  $new_file = trailingslashit( $uploads_dir ) . $filename;
159
  wpcf7_init_uploads(); // Confirm upload dir
160
 
161
  $filename = $file['name'];
162
+ $filename = wpcf7_antiscript_file_name( $filename );
 
 
 
 
163
  $filename = wp_unique_filename( $uploads_dir, $filename );
164
 
165
  $new_file = trailingslashit( $uploads_dir ) . $filename;
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
7
- Stable tag: 3.5.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -44,6 +44,7 @@ The following are other recommended plugins by the author of Contact Form 7.
44
  * Brazilian Portuguese (pt_BR) - [Leonardo Pinheiro](http://www.eletrikabarbarella.com.br/), [Henrique Vianna](http://henriquevianna.com/), [Caciano Gabriel Batista](http://www.gn10.com.br/), [Gervásio Antônio](http://twitter.com/gervasioantonio)
45
  * Bulgarian (bg_BG) - [Iliyan Darganov](http://www.darganov.com/)
46
  * Catalan (ca) - [Jordi Sancho](http://www.qasolutions.net/blog), Robert Buj, Jaume Aragay Badia
 
47
  * Chinese, Simplified (zh_CN) - [Soz](http://www.webtoolol.com/), [Keefe Dunn](http://dengkefu.com/), [Stella Hu](http://prowordpresser.com/)
48
  * Chinese, Traditional (zh_TW) - [James Wu](http://jameswublog.com)
49
  * Croatian (hr) - [tolingo Translation Services](http://www.tolingo.com)
@@ -120,6 +121,13 @@ Do you have questions or issues with Contact Form 7? Use these support channels
120
 
121
  == Changelog ==
122
 
 
 
 
 
 
 
 
123
  = 3.5.2 =
124
 
125
  * Fixed: Strip newlines to prevent mail header injection.
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
 
44
  * Brazilian Portuguese (pt_BR) - [Leonardo Pinheiro](http://www.eletrikabarbarella.com.br/), [Henrique Vianna](http://henriquevianna.com/), [Caciano Gabriel Batista](http://www.gn10.com.br/), [Gervásio Antônio](http://twitter.com/gervasioantonio)
45
  * Bulgarian (bg_BG) - [Iliyan Darganov](http://www.darganov.com/)
46
  * Catalan (ca) - [Jordi Sancho](http://www.qasolutions.net/blog), Robert Buj, Jaume Aragay Badia
47
+ * Central Kurdish (ckb) - Mahr Hassan
48
  * Chinese, Simplified (zh_CN) - [Soz](http://www.webtoolol.com/), [Keefe Dunn](http://dengkefu.com/), [Stella Hu](http://prowordpresser.com/)
49
  * Chinese, Traditional (zh_TW) - [James Wu](http://jameswublog.com)
50
  * Croatian (hr) - [tolingo Translation Services](http://www.tolingo.com)
121
 
122
  == Changelog ==
123
 
124
+ = 3.5.3 =
125
+
126
+ * Checking of file extension when uploading has been enhanced.
127
+ * The jQuery Form Plugin (jquery.form.js) has been updated to 3.44.0.
128
+ * Translation for Central Kurdish (ckb) has been created.
129
+ * Translations for German, Hungarian and Japanese have been updated.
130
+
131
  = 3.5.2 =
132
 
133
  * Fixed: Strip newlines to prevent mail header injection.
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.2
11
  */
12
 
13
  /* Copyright 2007-2013 Takayuki Miyoshi (email: takayukister at gmail.com)
@@ -27,7 +27,7 @@ Version: 3.5.2
27
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28
  */
29
 
30
- define( 'WPCF7_VERSION', '3.5.2' );
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.3
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.3' );
31
 
32
  define( 'WPCF7_REQUIRED_WP_VERSION', '3.5' );
33