fix: 修复Xi'an传参问题
This commit is contained in:
@@ -878,9 +878,9 @@ export async function getDnsMapData (type) {
|
|||||||
}
|
}
|
||||||
export function handleSpecialValue (value) {
|
export function handleSpecialValue (value) {
|
||||||
if (value) {
|
if (value) {
|
||||||
value = value.replace(/\'/g, "\\\\'")
|
value = value.replace(/\'/g, "\\'\\'") // Xi'an -> Xi''an
|
||||||
.replace(/\"/g, '\\"')
|
.replace(/\"/g, '\\"') // ISP中可能有带双引号的数据
|
||||||
.replace(/\&/g, '%26')
|
.replace(/\&/g, '%26') // ISP中可能有带&的数据
|
||||||
}
|
}
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user