From 9fff806013d3dbccc21d28c28b83004d1a5856fc Mon Sep 17 00:00:00 2001 From: trendschau Date: Tue, 4 Jan 2022 22:36:07 +0100 Subject: [PATCH] Version 1.5.2: improve slug and stop hiding slug input if empty --- cache/securitylog.txt | 1 - system/author/js/vue-meta.js | 12 ++++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) delete mode 100644 cache/securitylog.txt 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\-]*$/)) {