fix(AnalyzeUrl): skip analyze when mUrl is DataURL

pull/2158/head
Xwite 2 years ago
parent 05581c30c3
commit 185f25dd6b
  1. 2
      app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt

@ -72,7 +72,6 @@ class AnalyzeUrl(
private val enabledCookieJar = source?.enabledCookieJar ?: false
init {
if (!mUrl.isDataUrl()) {
val urlMatcher = paramPattern.matcher(baseUrl)
if (urlMatcher.find()) baseUrl = baseUrl.substring(0, urlMatcher.start())
(headerMapF ?: source?.getHeaderMap(true))?.let {
@ -84,7 +83,6 @@ class AnalyzeUrl(
}
initUrl()
}
}
/**
* 处理url

Loading…
Cancel
Save