⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.asp

📁 这是一本关于高级软件工程的书籍
💻 ASP
字号:
<%
	function managestr(str)
	on error resume next
	''''''''''''''''''''''''''''
	'处理输入字串、过滤输入变量'
	'                          '
	''''''''''''''''''''''''''''
	
		dim keyarray,i,tmp,tmp1
		tmp1 = trim(cstr(str))
		if tmp1<>"" then
			keyarray = Array("javascript","<",">",";","return","script","&lt","&gt"," ","'","%")
			if instr(1,tmp1,"insert ")>0 and instr(1,tmp1," from ")>0 and instr(1,tmp1,";")>0 then
				tmp="xxxxxxxxxx"
			end if
		
			if instr(1,tmp1,"delete ")>0 and instr(1,tmp1," from ")>0 and instr(1,tmp1,";")>0 then
				tmp="xxxxxxxxxx"
			end if
		
			if instr(1,tmp1,"update ")>0 and instr(1,tmp1," from ")>0 and instr(1,tmp1,";")>0 then
				tmp="xxxxxxxxxx"
			end if
	
			if instr(1,tmp1,"function ")>0 and instr(1,tmp1,"{")>0 and instr(1,tmp1,"}")>0 then
				tmp="xxxxxxxxxx"
			end if
	
			for i=0 to ubound(keyarray)
				if instr(1,tmp1,keyarray(i))>0 then tmp = replace(tmp1,keyarray(i),"")
			next
			tmp = replace(tmp1,"'","''")
		end if
		managestr = tmp
	end function  
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -