Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb18cf7c

Browse files
mcollina3rd-Eden
authored andcommitted
Block long a-z chars sequences as well as numbers.
Signed-off-by: Arnout Kazemier <info@3rd-Eden.com>
1 parent50be8cb commitb18cf7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎index.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,8 @@ function isSafe(userAgent) {
417417

418418
for(vari=0;i<userAgent.length;i++){
419419
code=userAgent.charCodeAt(i);
420-
// numbers between 0 and 9
421-
if(code>=48&&code<=57){
420+
// numbers between 0 and 9, letters between a and z
421+
if((code>=48&&code<=57)||(code>=97&&code<=122)){
422422
consecutive++;
423423
}else{
424424
consecutive=0;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp