From 51eeb89f671d5f90061d8ea21e6601d283e9f382 Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Sat, 23 May 2020 11:25:18 +0800 Subject: [PATCH] Allow consecutive points --- native/jni/magiskhide/hide_utils.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/native/jni/magiskhide/hide_utils.cpp b/native/jni/magiskhide/hide_utils.cpp index bf11bfde1..a56219db7 100644 --- a/native/jni/magiskhide/hide_utils.cpp +++ b/native/jni/magiskhide/hide_utils.cpp @@ -76,18 +76,15 @@ static bool validate(const char *s) { for (char c; (c = *s); ++s) { if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || c == '_' || c == ':') { - dot = false; continue; } if (c == '.') { - if (dot) // No consecutive dots - return false; dot = true; continue; } return false; } - return true; + return dot; } static int add_list(const char *pkg, const char *proc = "") {