commit
7a807959d8
@ -796,7 +796,7 @@ public class JdbcProvider extends DefaultJdbcProvider {
|
||||
break;
|
||||
case sqlServer:
|
||||
SqlServerConfiguration sqlServerConfiguration = new Gson().fromJson(datasource.getConfiguration(), SqlServerConfiguration.class);
|
||||
if(!sqlServerConfiguration.getDataBase().matches("^[0-9a-zA-Z_.-]{1,}$")){
|
||||
if(!sqlServerConfiguration.getDataBase().matches("^[0-9a-zA-Z_.-\u4E00-\u9FA5\u8FBD-\u9FBB\uFA0E-\uFA29]{1,}$")){
|
||||
throw new Exception("Invalid database name");
|
||||
}
|
||||
break;
|
||||
|
||||
@ -60,6 +60,7 @@ public class OracleQueryProvider extends QueryProvider {
|
||||
|
||||
@Override
|
||||
public Integer transFieldType(String field) {
|
||||
field = field.split("\\(")[0];
|
||||
switch (field) {
|
||||
case "CHAR":
|
||||
case "VARCHAR2":
|
||||
|
||||
@ -202,7 +202,7 @@
|
||||
<div
|
||||
v-if="showFoot"
|
||||
class="dynamic-login-foot"
|
||||
v-html="$xss(footContent)"
|
||||
v-html="footContent"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
@ -216,6 +216,7 @@ import { changeFavicon, showMultiLoginMsg } from '@/utils/index'
|
||||
import { initTheme } from '@/utils/ThemeUtil'
|
||||
import PluginCom from '@/views/system/plugin/PluginCom'
|
||||
import Cookies from 'js-cookie'
|
||||
import xss from 'xss'
|
||||
export default {
|
||||
name: 'Login',
|
||||
components: { PluginCom },
|
||||
@ -449,7 +450,27 @@ export default {
|
||||
this.showFoot = this.uiInfo['ui.showFoot'].paramValue === true || this.uiInfo['ui.showFoot'].paramValue === 'true'
|
||||
if (this.showFoot) {
|
||||
const content = this.uiInfo['ui.footContent'] && this.uiInfo['ui.footContent'].paramValue
|
||||
this.footContent = content
|
||||
const myXss = new xss.FilterXSS({
|
||||
css: {
|
||||
whiteList: {
|
||||
'background-color': true,
|
||||
'text-align': true,
|
||||
'color': true,
|
||||
'margin-top': true,
|
||||
'margin-bottom': true,
|
||||
'line-height': true,
|
||||
'box-sizing': true,
|
||||
'padding-top': true,
|
||||
'padding-bottom': true
|
||||
}
|
||||
},
|
||||
whiteList: {
|
||||
...xss.whiteList,
|
||||
p: ['style'],
|
||||
span: ['style']
|
||||
}
|
||||
})
|
||||
this.footContent = myXss.process(content)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user