Add jquery-latest.js to blacklist

http://code.jquery.com/jquery-latest.js 와 같은 스크립트를 임의로
로딩하지 못하도록 막음. 버전이 붙은 파일명은 이미 대부분 막혀 있었지만,
이 커밋에서는 -latest가 포함된 것도 막도록 변경함.

cf. https://xetown.com/qna/1089463
This commit is contained in:
Kijin Sung 2018-10-11 14:32:10 +09:00
parent 7a97084df9
commit e027bc8319
2 changed files with 2 additions and 1 deletions

View file

@ -19,7 +19,7 @@ class HTMLDisplayHandler
* List of scripts to block loading
*/
public static $blockedScripts = array(
'@(?:^|/)j[Qq]uery(?:-[0-9]+(?:\.[0-9x]+)*)?(?:\.min)?\.js$@',
'@(?:^|/)j[Qq]uery(?:-[0-9]+(?:\.[0-9x]+)*|-latest)?(?:\.min)?\.js$@',
);
/**