Tämä sivusto toimii paremmin JavaScriptillä.
Etusivu
Tutki
Apua
Kirjaudu sisään
htmlhouse
/
htmlhouse
peilaus alkaen
https://github.com/writeas/htmlhouse
Tarkkaile
1
Äänestä
0
Fork
0
Koodi
Ongelmat
0
Julkaisut
2
Toiminta
Selaa lähdekoodia
Automatically pass public filter when no blacklist configured
pull/4/head
Matt Baer
6 vuotta sitten
vanhempi
2caebcfecf
commit
7893f07a80
1 muutettua tiedostoa
jossa
4 lisäystä
ja
0 poistoa
Jaettu näkymä
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
filter.go
+ 4
- 0
filter.go
Näytä tiedosto
@@ -1,6 +1,10 @@
package htmlhouse
func passesPublicFilter(app *app, html string) bool {
if app.cfg.BlacklistTerms == "" {
return true
}
spam := app.cfg.BlacklistReg.MatchString(html)
return !spam
}
Kirjoita
Esikatselu
Ladataan…
Peruuta
Tallenna