1
0
Fork 0

Feature 3.4/joi ui upgrade (#7322)

* fix a small regex issue, upgrade joi to newer version

* changelog

* prev. commited wrong regex
This commit is contained in:
Heiko 2018-11-20 09:50:39 +01:00 committed by Michael Hackstein
parent dcf6cde1f4
commit ee45b6a595
6 changed files with 12 additions and 7193 deletions

View File

@ -1,6 +1,8 @@
v3.4.0-rc.5 (XXXX-XX-XX)
------------------------
* Updated joi library (Web UI), improved foxx mount path validation
* disable startup warning for Linux kernel variable `vm.overcommit_memory` settings
values of 0 or 1.
Effectively `overcommit_memory` settings value of 0 or 1 fix two memory-allocation

View File

@ -92,7 +92,7 @@
"frontend/js/lib/bootstrap-pagination.min.js",
"frontend/js/lib/jqconsole.min.js",
"frontend/js/lib/highlight.js",
"frontend/js/lib/joi.browser.js",
"frontend/js/lib/joi-browser.min.js",
"frontend/js/lib/md5.min.js",
"frontend/js/lib/pretty-bytes.js",
"frontend/js/lib/marked.min.js",

View File

@ -1233,8 +1233,8 @@
validateInput: function () {
return [
{
rule: Joi.string().regex(/^(\/(APP[^\/]+|(?!APP)[a-zA-Z0-9_\-\/]+))+$/i),
msg: 'May not contain /APP'
rule: Joi.string().regex(/(\/|^)APP(\/|$)/i, {invert: true}),
msg: 'May not contain APP'
},
{
rule: Joi.string().regex(/^([a-zA-Z0-9_\-\/]+)+$/),

File diff suppressed because one or more lines are too long

View File

@ -46,7 +46,7 @@
validateInput: function () {
return [
{
rule: Joi.string().regex(/^(\/(APP[^/]+|(?!APP)[a-zA-Z0-9_\-%]+))+$/i),
rule: Joi.string().regex(/(\/|^)APP(\/|$)/i, {invert: true}),
msg: 'May not contain /APP'
},
{