diff --git a/cache/securitylog.txt b/cache/securitylog.txt deleted file mode 100644 index 0e6d356..0000000 --- a/cache/securitylog.txt +++ /dev/null @@ -1 +0,0 @@ -127.0.0.1;2021-10-21 16:41:00;wrong captcha http://localhost/typemill/tm/login diff --git a/system/author/js/vue-meta.js b/system/author/js/vue-meta.js index 3d64bb9..dad6ebc 100644 --- a/system/author/js/vue-meta.js +++ b/system/author/js/vue-meta.js @@ -22,8 +22,8 @@ Vue.component('tab-meta', { } }, template: '
' + - '
' + - '' + + '
' + + '' + '
{{ slugerror }}
' + '
' + '
' + @@ -77,6 +77,14 @@ Vue.component('tab-meta', { this.disabled = "disabled"; return; } + if(this.slug == '') + { + this.slugerror = 'empty slugs are not allowed'; + this.disabled = "disabled"; + return; + } + + this.slug = this.slug.replace(/ /g, '-'); if(this.slug.match(/^[a-z0-9\-]*$/)) {