作家
登录

Web安全之跨站脚本攻击(XSS)

作者: 来源: 2017-06-14 18:02:49 阅读 我要评论

  •                 if (next && options.isAttributeValue) { 
  •  
  •                     if (strict && next == '=') { 
  •  
  •                         parseError('`&` did not start a character reference'); 
  •  
  •                     } 
  •  
  •                     return $0; 
  •  
  •                 } else { 
  •  
  •                     if (strict) { 
  •  
  •                         parseError( 
  •  
  •                             'named character reference was not terminated by a semicolon' 
  •  
  •                         ); 
  •  
  •                     } 
  •  
  •                     // Note: there is no need to check `has(decodeMapLegacy, reference)`. 
  •  
  •                     return decodeMapLegacy[reference] + (next || ''); 
  •  
  •                 } 
  •  
  •             }); 
  •  
  •         };  
    • DOM Parse和过滤
    1. var parse=function(str){   
    2.  
    3.     var results=''
    4.  
    5.     try { 
    6.  
    7.         HTMLParser(str,{ 
    8.  
    9.             start:function(tag,attrs,unary){ 
    10.  

        推荐阅读

        2017十大最佳用于隐私和安全保护的Linux发行版

      但安然意识高的用户会对专为隐私和安然设计的 Linux 发行版更有兴趣,它们可以赞助你经由过程加密操作来保护数据的安然,并支撑在 Live 模式下运行,无需将数据写入在应用中的硬盘。这篇>>>详细阅读


      本文标题:Web安全之跨站脚本攻击(XSS)

      地址:http://www.17bianji.com/lsqh/35765.html

    关键词: 探索发现

    乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

    网友点评
    自媒体专栏

    评论

    热度

    精彩导读
    栏目ID=71的表不存在(操作类型=0)