Ce site fonctionne mieux avec JavaScript.
Accueil
Explorateur
Aide
Connexion
htmlhouse
/
htmlhouse
miroir de
https://github.com/writeas/htmlhouse
Suivre
1
Ajouter aux favoris
0
Bifurcation
0
Code
Tickets
0
Versions
2
Activité
Parcourir la source
Automatically pass public filter when no blacklist configured
pull/4/head
Matt Baer
il y a 6 ans
Parent
2caebcfecf
révision
7893f07a80
1 fichiers modifiés
avec
4 ajouts
et
0 suppressions
Vue séparée
Option de Diff
Voir les Statistiques
Télécharger le Fichier Patch
Télécharger le Fichier des Différences
+4
-0
filter.go
+ 4
- 0
filter.go
Voir le fichier
@@ -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
}
Écrire
Aperçu
Chargement…
Annuler
Enregistrer