?? nosql.asp
字號:
<%'post過濾sql注入代防范及HTML防護開始
function nosql(str)
if not isnull(str) then
str=trim(str)
str=replace(str,";",";") '分號
str=replace(str,"'","'") '單引號
str=replace(str,"""",""") '雙引號
str=replace(str,"chr(9)"," ") '空格
str=replace(str,"chr(10)","<br>") '回車
str=replace(str,"chr(13)","<br>") '回車
str=replace(str,"chr(32)"," ") '空格
str=replace(str,"chr(34)",""") '雙引號
str=replace(str,"chr(39)","'") '單引號
str=Replace(str, "script", "script")'jscript
str=replace(str,"<","<") '左<
str=replace(str,">",">") '右>
str=replace(str,"(","(") '左(
str=replace(str,")",")") '右)
str=replace(str,"--","--") 'SQL注釋符
nosql=str
end if
end function
%>
<script language="javascript">
function confirmdel(){
if (confirm("您確定清空購物車中選購的全部產品?"))
window.location.href="clear.asp"
}
</script>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -