Mcat12
70f2b26c86
Escape periods in wildcard converted regex filters.
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
6 years ago
Mcat12
cfd95dbe87
Fix incorrect variable usage
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
6 years ago
Mcat12
c5bb404d6a
Emulate wildcard blacklisting via -wild and move regex to -regex
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
6 years ago
bcambl
4c23964964
ensure images are build prior to running tests
...
Signed-off-by: bcambl <blayne@blaynecampbell.com>
6 years ago
bcambl
e4a6dcd35c
update travis.yml to run tests in parallel
...
Signed-off-by: bcambl <blayne@blaynecampbell.com>
6 years ago
bcambl
d4addd53ad
Add tests for Fedora/CentOS distro_check
...
- test to ensure installer behavior with unsupported CentOS releases
- test to ensure repository enablement
- test to ensure PHP upgrade opt-in/opt-out behavior
Signed-off-by: bcambl <blayne@blaynecampbell.com>
6 years ago
Mcat12
d21298c156
Add back conditional forwarding to webpage.sh
...
This was accidentally removed in a previous PR.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
6 years ago
Dan Schaper
9dba9fb366
Convert multiline echos to individual echo statements so they don't lead with different amounts of space.
...
Signed-off-by: Dan Schaper <dan.schaper@pihole.net>
6 years ago
bcambl
09d40679c0
add test for unsupported distro checking
...
Signed-off-by: bcambl <blayne@blaynecampbell.com>
6 years ago
Dan Schaper
a323b126e5
Finished space conversion
...
Signed-off-by: Dan Schaper <dan.schaper@pihole.net>
6 years ago
bcambl
553aad6ed2
add Fedora container to test matrix
...
Signed-off-by: bcambl <blayne@blaynecampbell.com>
6 years ago
bcambl
5ca2ad6148
move test globals & mock commands to conftest
...
Signed-off-by: bcambl <blayne@blaynecampbell.com>
6 years ago
bcambl
40537e1522
python linting: missing whitespace after ',' (E231)
...
Signed-off-by: bcambl <blayne@blaynecampbell.com>
6 years ago
bcambl
064a75b21b
python linting: missing whitespace around operator (E225)
...
Signed-off-by: bcambl <blayne@blaynecampbell.com>
6 years ago
bcambl
1d3445bc0f
python linting: whitespace after '(' and before ')' (E201 & E202)
...
Signed-off-by: bcambl <blayne@blaynecampbell.com>
6 years ago
bcambl
79232d02c9
python linting: 'pytest' imported but unused (F401)
...
Signed-off-by: bcambl <blayne@blaynecampbell.com>
6 years ago
bcambl
9bd4986781
python linting: whitespace before ':' (E203)
...
Signed-off-by: bcambl <blayne@blaynecampbell.com>
6 years ago
bcambl
c3d443aaff
python linting: lines > 79 characters (E501)
...
Signed-off-by: bcambl <blayne@blaynecampbell.com>
6 years ago
WaLLy3K
b087888f94
Merge pull request #2261 from pi-hole/fix-no-protocol
...
Treat adlists URLs without a protocol as HTTP
6 years ago
bcambl
da3dfd0998
python linting: missing whitespace after ':' (E231)
...
Signed-off-by: bcambl <blayne@blaynecampbell.com>
6 years ago
bcambl
4468d81472
python linting: 2 lines prior to defs (E302)
...
Signed-off-by: bcambl <blayne@blaynecampbell.com>
6 years ago
WaLLy3K
7ddae8f2eb
Treat URLs without a protocol as HTTP
...
Signed off by WaLLy3K <wally3k@pi-hole.net>
6 years ago
Mark Drobnak
6b2851a671
Merge pull request #2257 from pi-hole/fix/query-process-wildcards
...
Move processWildcards to query.sh
6 years ago
Mcat12
4763969c8f
Move processWildcards to query.sh
...
Closes #2255
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
6 years ago
Mark Drobnak
f9b75e486c
Merge pull request #2256 from pi-hole/fix/query-lists-variable-substitution
...
Fix incorrect variable string substitution
6 years ago
Mcat12
f868052062
Fix incorrect variable string substitution
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
6 years ago
Mcat12
61f0cbe10a
Update pihole man page for regex
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
6 years ago
Mcat12
0f4968d75c
Merge remote-tracking branch 'origin/development' into new/regex-lists
6 years ago
Mcat12
3077c22e4f
Change help strings from wildcard to regex blacklist
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
6 years ago
Mcat12
0decc37b5a
Appease stickler
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
6 years ago
Mcat12
4a953b66e0
Make removing regex domains work correctly
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
6 years ago
Mcat12
8435eeed4d
Don't validate regex domains
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
6 years ago
Mcat12
cffb4de83b
Use strict grep instead of regex for duplicates
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
6 years ago
Mcat12
55175087c4
Set regex file permissions for web access
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
6 years ago
Dan Schaper
0ddfa8ad10
Merge pull request #2254 from andrewjanke/patch-1
...
typo fix
6 years ago
Andrew Janke
b74fb3f179
typo fix
6 years ago
bcambl
9d3d33b6a2
add tests for selinux checking
...
Signed-off-by: bcambl <blayne@blaynecampbell.com>
6 years ago
Dan Schaper
2abaa60c2e
Merge pull request #2249 from pi-hole/revert-2069-fix/nullbyte
...
Revert "Fix error: /opt/pihole/gravity.sh: 385: Warning: command substitution: ignored null byte in input"
6 years ago
Dan Schaper
d5547f5c7c
Revert "Fix error: /opt/pihole/gravity.sh: 385: Warning: command substitution: ignored null byte in input"
6 years ago
Mark Drobnak
061510098c
Merge pull request #2246 from pi-hole/fix/debug-simple-gravity-list
...
Update debug script for simple list format
6 years ago
Mark Drobnak
4fc3546887
Merge pull request #2069 from pi-hole/fix/nullbyte
...
Fix error: /opt/pihole/gravity.sh: 385: Warning: command substitution: ignored null byte in input
6 years ago
Mcat12
868948509a
Split declaration and assignment of random_url
...
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
6 years ago
Mark Drobnak
e71492a2b3
Update debug script for simple list format
...
Gravity is now just a list of domains, not IP addresses and domains separated by a space.
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
6 years ago
Mark Drobnak
c2055f3514
Merge pull request #2240 from pi-hole/tweak/warn_on_tail_if_log_disabled
...
pihole -t: Warn user if Pi-hole's logging is disabled
6 years ago
DL6ER
2809579dd7
Refine regex filter generation
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
6 years ago
DL6ER
c7afe3e9a4
Please stickler by making clear that the variable regexFile is declared outside of this routine
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
6 years ago
DL6ER
cd026cd865
Add comment where regexList is defined
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
6 years ago
DL6ER
bc705aac03
Add automated wildcard list -> regex filter conversion
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
6 years ago
DL6ER
a7c73036f0
pihole -t: Warn user if Pi-hole's logging is disabled
...
Signed-off-by: DL6ER <dl6er@dl6er.de>
6 years ago
Mark Drobnak
e80d27f273
Merge pull request #2234 from rrobgill/split-query-functions
...
Fix grep query leak & relocate query
6 years ago