作家
登录

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

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

return decodeMap[reference]; 
  •  
  •                     } else { 
  •  
  •                         // Ambiguous ampersand. https://mths.be/notes/ambiguous-ampersands 
  •  
  •                         if (strict) { 
  •  
  •                             parseError( 
  •  
  •                                 'named character reference was not terminated by a semicolon' 
  •  
  •                             ); 
  •  
  •                         } 
  •  
  •                         return $0; 
  •  
  •                     } 
  •  
  •                 } 
  •  
  •                 // If we’re still here, it’s a legacy reference for sure. No need for an 
  •  
  •                 // extra `if` check
  •  
  •                 // Decode named character references without trailing `;`, e.g. `&amp` 
  •  
  •                 // This is only a parse error if it gets converted to `&`, or if it is 
  •  
  •                 // followed by `=` in an attribute context. 
  •  
  •                 reference = $6; 
  •  
  •                 next = $7; 
  •  

  •   推荐阅读

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

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


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

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

    关键词: 探索发现

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

    网友点评
    自媒体专栏

    评论

    热度

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