Commit Graph

1645 Commits (cdd4d9ea9e51c8110df832d5fadeb44bc90b5085)

Author SHA1 Message Date
DL6ER b421e422c2
Merge pull request #3351 from marank/development
4 years ago
MichaIng 5c17e41cf1 Start pihole-FTL after network
4 years ago
Dan Schaper 10addc5923
Merge pull request #3218 from JulienOrain/patch-1
4 years ago
Dan Schaper c76435883b
Merge pull request #3360 from dnicolson/fix-github-capitalisation
4 years ago
Dave Nicolson ab753e88a2 Fix GitHub capitalisation
4 years ago
Adam Warner be25b4d9c4
Merge pull request #3352 from pi-hole/merge-master-dev
4 years ago
Adam Warner 9e96ff37de
Fix merge conflicts
4 years ago
DL6ER a9c66c7b45
Implement pihole -a theme option
4 years ago
Matthias Rank 2b9898e9ca Fixed indentation
4 years ago
Matthias Rank 0add5eb291 Added support for CNAME record add/remvoe
4 years ago
Jeroen Baert 4cf241b42b Fix for pihole -w --nuke displaying help info even if command is executed correctly
4 years ago
DL6ER 7cc35d3b04
Add update to gravity database version 12, renaming the Unassociated group to Default group.
4 years ago
DL6ER 78469ee58d
Merge pull request #3255 from pi-hole/tweak/emailregex
4 years ago
Adam Warner 369288cc48
Update advanced/Scripts/webpage.sh
4 years ago
Dan Schaper 742d802940
Merge pull request #3027 from XhmikosR/patch-1
4 years ago
Dan Schaper 017d405b28
Merge pull request #3307 from pi-hole/tweak/debugger_type_display
4 years ago
DL6ER ddb354f78b
Add enable indentation for the domainlist
4 years ago
DL6ER 20ef5e0264
Show associated group IDs in domains/clients/adlists listing. We get the data through a LEFT JOIN followed by a GROUPing by the left list ID and finialized through a GROUP_CONCATenation.
4 years ago
DL6ER ad5802715e
enabled field: Center 0, right-align 1
4 years ago
DL6ER 989bbad37e
Remove pihole -a hostrecord
4 years ago
DL6ER 63f6c6a894
Add indentation for enabled and type fields
4 years ago
Adam Warner d42785a3bf
Merge pull request #3271 from pi-hole/tweak/version
4 years ago
DL6ER 401c029dc4
Improve else condition of branch determination
4 years ago
DL6ER 0343171703
Add correct displaying for detached HEAD state.
4 years ago
DL6ER 176fbaf83b
Ask pihole-FTL for the branch it was compiled from instead of trusting the checkout file to be present.
4 years ago
Adam Warner 471006676c
Merge pull request #3227 from pi-hole/new/CLI_domain_comments
4 years ago
Adam Warner 3cc9ba4ee8
stickler Signed-off-by: Adam Warner <me@adamwarner.co.uk>
4 years ago
Adam Warner 6dc85c3527
Don't display branch name if it is on master.
4 years ago
Adam Warner 851947bbf2
Add branch name to version output
4 years ago
Matthias Schoettle 308eb5eda5 Fixes broken blocking page and landing page when changing server port and/or hostname.
4 years ago
DL6ER 093054a1eb
Automatically convert legacy IP range to Class C network
4 years ago
DL6ER 4130af0aab
Retain rev-server settings when the feature gets disabled.
4 years ago
DL6ER 90a5a13197
Convert CONDITIONAL_FORWARDING to REV_SERVER settings. Try to detect intended CIDR range automatically.
4 years ago
DL6ER 982c1b0059
Merge branch 'release/v5.0' into development
4 years ago
Adam Warner 26f71e4dbe
accidentally a space
4 years ago
Adam Warner b6ac1585ec
add regex attribution
4 years ago
Adam Warner a9b19df4ec
expand email validation regex to catch more valid emails see comments on PR #3254
4 years ago
M4x 2de5362adc
Sanitize email address in case of security issues (#3254)
4 years ago
DL6ER d1caad76d8
Do not flush neigh cache as this is known to create a number of issues. The better aproach to this is to manually flush the ARP cache by either restarting or calling "ip neigh flush all".
4 years ago
Adam Warner 7d19ee1b25
validate blocklist URL before adding to the database (#3237)
4 years ago
DL6ER 277179f150 Remove 19036 trust anchor, now expired: https://www.icann.org/resources/pages/ksk-rollover
4 years ago
DL6ER 15a9d662ac Add option --comment "whatever" for adding comments for new domains through the CLI interface.
4 years ago
Julien Orain 6d4844a0b3 docs(typo): fix typo
4 years ago
XhmikosR 7b8611ced0
Assorted typo fixes. (#3126)
4 years ago
DL6ER 497bfd80a5
Update development from release/v5.0 (#3200)
4 years ago
DL6ER 22ce5c0d70
Fix incorrect type description. (#3201)
4 years ago
Dan Schaper bf4fada3b7
Don't quote inside backticks, use unquoted variable.
4 years ago
Dan Schaper 360d0e4e6b
Loop through array of lists.
4 years ago
Dan Schaper 4f390ce801
Use bash regex instead of awk.
4 years ago
Adam Warner 8ecaaba247
Compare daemons to expected results. (#3158) (#3159)
4 years ago
Adam Warner 4a5f344b09
then
4 years ago
Adam Warner af95e8c250
force `updatchecker.sh` run if any of the three components are updated
4 years ago
Dan Schaper c5c414a7a2
Stickler Lint - quote to prevent splitting
4 years ago
DL6ER d0e29ab7b0 Add human-readable output of time of the last gravity run.
4 years ago
DL6ER 714a79ffce Migrate debugger to domainlist and add printing of client table.
4 years ago
DL6ER cd3ad0bdc7 Show info table instead of counting domains to speed up the debugging process on low-end hardware drastically.
4 years ago
DL6ER e528903488
Merge pull request #3107 from pi-hole/new/client_comments
4 years ago
DL6ER 92aa510bda
Add timestamps and comment fields to clients. This updates the gravity database to version 11.
4 years ago
DL6ER 6b04997fc3
DROP and reCREATE TRIGGERs during gravity swapping.
4 years ago
DL6ER 10c2dad48a Improve gravity performance (#3100)
4 years ago
Dan Schaper 52e2a2610e
Merge pull request #3089 from pi-hole/tweak/gravity_db_10
4 years ago
DL6ER 3f9e79f152
Print human-readable timestamps in the debugger's gravity output
4 years ago
DL6ER 633e56e8a9
Add gravity database 9->10 update script.
4 years ago
DL6ER 276b191845
Remove dead code causing failure from the blocking page.
4 years ago
DL6ER bb30c818ab
Update database version during migration.
4 years ago
Adam Warner c944f6a320
Add a new migration script to fix the previous one
4 years ago
Adam Warner aa4c0ff329
Don't create trigger with duplicate name until after old table is deleted
4 years ago
DL6ER 37217ece73
Merge pull request #3049 from pi-hole/tweak/unique_group_name
4 years ago
DL6ER cda0133dd1
Revert "Change the regex used for domain validation"
4 years ago
DL6ER eda7f40fef
Reinstall trigger that prevents group zero from being deleted.
4 years ago
DL6ER e589e665a7
Also add date_added and date_modified fields to group table.
4 years ago
DL6ER b32b5ad6e9
Update gravity database to version 8. This enforces uniqueness on the group name.
4 years ago
DL6ER e2de199f47
Merge pull request #3037 from pi-hole/new/group_zero
4 years ago
DL6ER a1633123aa
Merge pull request #3035 from pi-hole/fix/query_gravity
4 years ago
DL6ER 2444296348
Again, Mr. Stickler
4 years ago
DL6ER 4be7ebe61f
Scan domainlist instead of view to also catch disabled domains.
4 years ago
DL6ER a720fe1789
Add client trigger.
5 years ago
DL6ER 0b0ec43bf5
Merge pull request #3036 from pi-hole/fix/reload-lists
5 years ago
DL6ER f0439c8d12
Add special group zero to gravity database.
5 years ago
DL6ER 40e8657137
Please Mr. Stickler
5 years ago
DL6ER 52dd72dfa5
Ensure output is always correct and also display if domain has been found but is disabled
5 years ago
DL6ER 922ce7359c
pihole -q should also scan gravity table
5 years ago
DL6ER 5457b2c6ea
Merge pull request #2935 from pi-hole/new/internal-blocking
5 years ago
DL6ER 69a909fc4c
On modification of lists, we should send real-time signal 0 instead of SIGHUP. This also preserves the DNS cache of not-blocked domains.
5 years ago
Adam Warner ec09b5843c
Merge branch 'development' into fix/do_not_force_local_resolver
5 years ago
DL6ER f482156cca
Merge branch 'development' into new/internal-blocking
5 years ago
DL6ER 620e1e9c73
Do not force nameserver 127.0.0.1 through resolvconf in pihole-FTL.service
5 years ago
DL6ER 8a119d72e2
Ensure database permissions are set up correctly by the service script.
5 years ago
DL6ER 807a5cfb23
Merge pull request #3015 from pi-hole/tweak/domainlist_table
5 years ago
XhmikosR 54d0b9a1b8 Serve JS files with utf-8 charset too
5 years ago
Adam Warner eaf1244932
:dominik: Detect binary name before calling FTLcheckUpdate in update.sh
5 years ago
DL6ER b6cd7b8e3d
Use more descriptive names instead of directly using the IDs in list.sh
5 years ago
Adam Warner 869473172c
remove _ from regex descibers
5 years ago
Adam Warner 63e407cfdc
Update advanced/Scripts/list.sh
5 years ago
Adam Warner 0251117c77
Update advanced/Scripts/list.sh
5 years ago
Adam Warner 44e1455b12
Update advanced/Scripts/list.sh
5 years ago
Adam Warner 76460f01e9
Change the regex used for domain validation
5 years ago
Adam Warner 4b8a72fda7
functionise parameter discovery
5 years ago
Adam Warner edaee4e962
remove redundant function and comments
5 years ago
Adam Warner 77bfb3fb67
tidy up variable usage in list.sh Remove some that are redundant
5 years ago
Adam Warner 6a881545b0
tweak wording Signed-off-by: Adam Warner <me@adamwarner.co.uk>
5 years ago
Adam Warner d0de5fda30
Simplify removal of domain from one list when it is requested for another
5 years ago
DL6ER a1f120b2ff
Address stickler's complaint
5 years ago
DL6ER 185319d560
Unite four domain tables into a single domainlist table.
5 years ago
DL6ER 5c6dd3f6f4
Merge pull request #2978 from Mograine/patch-1
5 years ago
Adam Warner edcdf9f619
Merge pull request #3003 from pi-hole/fix/tbd
5 years ago
Mograine c809c34024 Add user feedback
5 years ago
DL6ER 037d52104a
New command "pihole -g -r" recreates gravity.db based on files backed up in /etc/pihole/migration_update. This is useful to restore a working version of the database when the user destroyed the original database. Also, update gravity.db to version 5 because of a fix we needed to implement.
5 years ago
Adam Warner eeb26e3975
Merge pull request #2990 from chrunchyjesus/unix-compliance
5 years ago
Adam Warner 12817c09bb
(Squashed commits)
5 years ago
Mograine b93628acb3 Merge branch 'development' of https://github.com/Mograine/pi-hole into patch-1
5 years ago
DL6ER 7f7b9d089c
Merge pull request #2965 from pi-hole/tweak/BackendChangesForAdlistComments
5 years ago
chrunchyjesus 476975540a
make some shebangs comply to posix standard
5 years ago
Mograine 193ff38ab3 Allow more precise deletion by passing ip as parameter
5 years ago
Pierre Ghiot bb8dbe9da5 Update 01-pihole.conf
5 years ago
Pierre Ghiot f9d16c2b15 Update webpage.sh
5 years ago
John Krull c6f9fe3af2 Fix spelling of the word "permitting"
5 years ago
Adam Warner 5bac1ad58b
backend changes to allow comment when adding new adlist
5 years ago
DL6ER d883854aad
Use constant for long path.
5 years ago
DL6ER 756c99653e
Merge branch 'development' into new/internal-blocking
5 years ago
DL6ER 2e0370367c
Print when we upgrade gravity database version. This will make possibly failed upgrades easier to debug.
5 years ago
DL6ER 3cb4f6d9d4
We cannot create vw_gravity before having created vw_whitelist as the former depends onthe later. This commit changes the order in which the tables are created.
5 years ago
Adam Warner 61a40c1b43
merge devel into 4.3.2 And Resolve merge conflicts
5 years ago
DL6ER a27c7b1398
regex white- and blacklist views need to be re-created as well as we need the ID for storing internally whether or not we try to match a given regex for a specific client.
5 years ago
DL6ER 7b48431917
Add client_by_group table like we have for the other lists. It stores associations between individual clients and list groups.
5 years ago
DL6ER 1f36ec48e3
Add use-application-dns.net = NXDOMAIN in ProcessDNSSettings rather than in the template so we can ensure that it will survive config-renewals.
5 years ago
DL6ER ff08add7c0
Update vw_whitelist and vw_blacklist to return group_id alongside domain so we can filter if the current client wants to get this domain blocked or not.
5 years ago
DL6ER ffc91a6c81
Update view vw_gravity to only return domains from enabled adlists.
5 years ago
DL6ER 525ec8cd01
Signal to Firefox that the local network is unsuitable for DNS-over-HTTPS
5 years ago
DL6ER a8af2e1837
Store domains without sorting and unifying them first. This allows us to preserve the relationship of the individual domains to the lists they came from.
5 years ago
DL6ER aed2e35bc0
Print messages only after removing possible matches in comments.
5 years ago
DL6ER a7b44426cd
Merge pull request #2838 from pi-hole/new/whitelist-regex-support
5 years ago
Dan Schaper b9fed8fca6
Merge pull request #2891 from niklasea/development
5 years ago
DL6ER d8eee47ca4
Add dhcp-ignore-names option when enabling DHCP service. We currently remove anything that starts with "dhcp-" to have a clean configuration and removed these lines without noticing when enabling the DHCP server.
5 years ago
Niklas Elmose Andersen a3e32d9a15 Properly escape domain regex
5 years ago
Niklas Elmose Andersen 989d1aff60 Restore and improve 'pihole -q' matching
5 years ago
Dan Schaper 03c65dd0e9
Convert hardcoded /usr/local/bin to variable
5 years ago
DL6ER 6faddfcd3d
Print timestamps in local time zone of the Pi-hole.
5 years ago
DL6ER 1820c2c598
Merge branch 'development' into new/whitelist-regex-support
5 years ago
DL6ER 23b688287f
Fix indentation in query.sh. No functional change in this commit.
5 years ago
DL6ER 42ccc1ef24
Add support for regex whitelist in "pihole -q".
5 years ago
DL6ER cc40c18f49
Wrap upgrade script commands in a transaction.
5 years ago
DL6ER b1838512b2
Explicitly select columns (and their order) when listing the databaes tables. Print timestamps translated to strings instead of printing the integer timestamps.
5 years ago
DL6ER e27f50b8e5
Try to obtain PID from PIDFILE. If this fails (file does not exist or is empty), fall back to using pidof + awk
5 years ago
DL6ER 484f618685
Use last PID in case pidof returns multiple PIDs for pihole-FTL
5 years ago
Jeroen Baert d3d45a8776
Fix 404 error when browsing to pi.hole (without /admin) (for fedora)
5 years ago
Jeroen Baert 9f86fd0cb4
Fix for 404 error when browsing to pi.hole (without /admin)
5 years ago
DL6ER 3e78ed95d4
Fix displaying options for table "group" in the debugger.
5 years ago
snapsl 20a839fef5 fixed local declaration before assignment
5 years ago
snapsl b2d8c4374b tweaked code style of webpage.sh
5 years ago
DL6ER dc93462d42
Group table has only two columns
5 years ago
DL6ER 6e2e825a5f
Rename options "pihole --whiteregex" to "pihole --white-regex" for the sake of readability. The same applied for "whitewild" -> "white-wild"
5 years ago
DL6ER af754e3fc4
Rearrange group tables directly next to the tables they refer to.
5 years ago
DL6ER 06860ed5b4
Group tables have only two columns.
5 years ago
DL6ER 09190c1735
Only check once for if this is a regex list or not.
5 years ago
DL6ER a95b473417
Rearranage if statements to ensure the proper output is shown for wildcard-style filters.
5 years ago
DL6ER 6f58d58cae
Add --whitewild to help texts and man pages.
5 years ago
DL6ER 40d0caa70b
Add undocumented --whitewild option that does the same --wild does for the whitelist.
5 years ago
DL6ER 0692be9bae
Fix small mistake in 2->3 upgrade script.
5 years ago
DL6ER 0d28dce326
Print group table contents in debug log.
5 years ago
DL6ER 96031214c6
Add support for whitelist regex filter management via CLI.
5 years ago
Mark Drobnak ab3f6dfcc6
Merge pull request #2831 from pi-hole/fix/block-page-adlists
5 years ago
Mcat12 3ebd43ebf0
Remove outdated adlists.list check and fix empty adlists error message
5 years ago
Mark Drobnak 445127accc
Merge pull request #2832 from pi-hole/new/audit_database
5 years ago
DL6ER 420f60b5c7
Add timeout to migration script (1->2).
5 years ago
DL6ER 65fdbc85d5
Add timeout to migration script (2->3).
5 years ago
DL6ER 87f75c737a
Review comments.
5 years ago
DL6ER 5ff9052200
Review comments
5 years ago
Mcat12 b154dd5f07
Quote calls to read FTL config
5 years ago
DL6ER 0683842ec3
Fix typo in 2->3 migration script.
5 years ago
DL6ER 054c7a2c05
Create new table + view regex_whitelist + rename old regex table to regex_blacklist. This updates the gravity.db version to 3.
5 years ago
DL6ER 3d3fc2947e
Review comments
5 years ago
Mcat12 e8e5d4afda
Get file locations of FTL files from the config
5 years ago
DL6ER 8382f4d727
Rename table to domain_audit and simplify subroutine addAudit().
5 years ago
DL6ER be3e198f9a
Address linting errors.
5 years ago
DL6ER acc50b709e
Only migrate files once (domain and adlist lists druing initial creation of gravity.db auditlog.list on database upgrade from version 1 to 2.
5 years ago
DL6ER efe8216445
Fix further stickler complaint.
5 years ago
DL6ER 0405aaa3da
Review comments and fixing stickler complaints.
5 years ago
Mark Drobnak 6bb213e56f
Merge pull request #2826 from Forceflow/development
5 years ago
DL6ER 2fb4256f84
Rename table to "auditlist"
5 years ago
DL6ER 82476138c1
Instead of calling sqlite3 multiple times within a loop, we use the ability to add multiple rows within one INSERT clause. This is supported since sqlite3 3.7.11 (2012-03-20) and should be available on all systems.
5 years ago
DL6ER 5293beeb77
Update audit script to store domains in new database table.
5 years ago
DL6ER 0c8f5f1221
Remove comment field from audit table
5 years ago
DL6ER 4f4a12bb40
Upgrade database if necessary and store audit domains therein.
5 years ago
DL6ER 1dbe6c83c3
Add database upgrading mechanism for adding the audit table.
5 years ago
Mcat12 2b5033e732
Add missing spaces found by linter
5 years ago
Mcat12 8d9ff550d4
Fix blockpage error if whitelisted, blacklisted, or regex filtered
5 years ago
Mcat12 f1733f9c5d
Fetch adlists for the block page from gravity.db
5 years ago
Mark Drobnak 92c3c86be4
Merge pull request #2769 from pi-hole/new/arp-flush
5 years ago
DL6ER 7a1b6fd205
Merge branch 'development' into new/gravity.db_domain_groups
5 years ago
MMotti 04abcb71f6 Fix potential invalid result for pihole -q
5 years ago
DL6ER 1fe3507bc5
Adlists table was renamed to Adlist. Adapt further places in the code to match the new name.
5 years ago
Jeroen Baert 9fedafed15 Fix 404 error when browsing to pi.hole (without /admin) (for fedora)
5 years ago
DL6ER 23b3a9a650
Add DISTINCT to the view\'s SELECT queries to avoid domain duplication in case they are enabled in multiple groups at the same time.
5 years ago
Jeroen Baert 7b2ac25a52 Fix for 404 error when browsing to pi.hole (without /admin)
5 years ago
DL6ER f91421418a
Rename adlists -> adlist table.
5 years ago
DL6ER 3a14e8b013
Check whitelist_by_group.group_id instead of group.enabled against NULL.
5 years ago
DL6ER ad97e95f2f
Add required name column in group table.
5 years ago
DL6ER 5b01facd73
Fix logix on the views: AND ( OR )
5 years ago
DL6ER 6fe637b9ee
Rename groups -> group
5 years ago
DL6ER 94d83dbb2d
Unify the two group tables into a single "groups" table. This allows managing adlists and domains together.
5 years ago
Mark Drobnak c9a843b417
Merge pull request #2823 from pi-hole/fix/lighttpd-mime
5 years ago
DL6ER 87c115fc86
Change implementation to use linking tables (domain_groups, adlists_groups). This allows adding domains to multiple lists conveniently.
5 years ago
RamSet b5af125be6 Removed line
5 years ago
RamSet ecc49318f0 Fixed MIME related issue present in lighttpd/1.4.53
5 years ago
DL6ER 0774c4e5ca
vw_gravity should actually filter using vw_whitelist.
5 years ago
DL6ER 01850c2128
Automatically recreate standard group after deletion to avoid violating foreign key constraints even if foreign key enforcing is disabled (SQLite's default behavior)
5 years ago
DL6ER cbc210b014
Add adlist_groups and mark group_id columns as NOT NULL.
5 years ago
DL6ER c53ee4202b
Add filtering by domain groups to gravity database.
5 years ago
DL6ER 6996ffa451
Also flush network_addresses table
5 years ago
DL6ER 4947350ca5
Add arpflush to help and bash autocompletion
5 years ago
DL6ER c1495b0fa8
Merge branch 'development' into new/arp-flush
5 years ago
MMotti bcf03647ef Add comment and remove blankspace
5 years ago
MMotti a9d0690f4d Change the case of some variables
5 years ago
MMotti 10fbed50f3 Shellcheck
5 years ago
MMotti 785f1fedd9 Tidy regexp queries
5 years ago
MMotti cf21efa103 Minor grammar changes
5 years ago
MMotti 7613e94ef6 Minor tweaks
5 years ago
MMotti b49c702f33 Consistency tweak
5 years ago
MMotti 09532638d5 Read from DB instead of regex.list
5 years ago
MMotti 97df6d7415 Stickler fix
5 years ago
MMotti 54bfaa28c1 Fix for regexp queries through pihole -q
5 years ago
Mark Drobnak afd28fab03
Merge pull request #2767 from pi-hole/fix/multiple_pihole-FTL_PIDs
5 years ago
Mark Drobnak d92ced6fb6
Merge pull request #2734 from pi-hole/fix/query_black_and_whitelists_database
5 years ago
DL6ER ae98fde321
Try to obtain PID from PIDFILE. If this fails (file does not exist or is empty), fall back to using pidof + awk
5 years ago
DL6ER 9ddce88092
Review comments
5 years ago
DL6ER 44f8fcb600
We can print the table name without any extra check as we already returned early in case there are no results.
5 years ago
Mark Drobnak 814fdcf9b6
Merge pull request #2768 from pi-hole/fix/dhcp-ignore-names
5 years ago
DL6ER 5060605626
Print table name before entering the loop for the sake of simplicity
5 years ago
DL6ER 285e6fe090
Address lint complaints
5 years ago
DL6ER c3023fe681
Add new "pihole arpflush" command to flush both the ARP cache as well as the network table in pihole-FTL.db
5 years ago
DL6ER c5df104a66
Add dhcp-ignore-names option when enabling DHCP service. We currently remove anything that starts with "dhcp-" to have a clean configuration and removed these lines without noticing when enabling the DHCP server.
5 years ago
DL6ER f6213d4f4d
Use last PID in case pidof returns multiple PIDs for pihole-FTL
5 years ago
Mcat12 bfb99c361c
Note that the gravity size does not include the blacklist entries
5 years ago
Mcat12 5796054305
Increase ID column width to 4
5 years ago
Mcat12 a3e1473ac1
Set explicit column widths to prevent text from getting cut off
5 years ago
Mcat12 7b5fc60e00
Improve table formatting
5 years ago
Mcat12 807ce0af4e
Show whitelist, blacklist, and regexlist details
5 years ago
Mcat12 3f05efd60f
Add extra newline
5 years ago
Mcat12 03d93aa19a
Update debug script with gravity DB changes
5 years ago
Dan Schaper 7de6bbca61
Merge branch 'development' into release/v4.3
5 years ago
Mcat12 8e1bf6e3d4
Merge branch 'development' into new/gravitydb
5 years ago
mpiederiet 3220e2b978
Fix for preventing git error message in cron logs
5 years ago
DL6ER a904c183df
Use printf to escape domain content. This prevents possible SQL injection issues
5 years ago
DL6ER 5246b3e496
Explicitly escape backslash in ESCAPE clause. This has been suggested by Stickler bot.
5 years ago
DL6ER f80fdd7e83
Improve comments
5 years ago
DL6ER 6ba58896d2
Simplify code
5 years ago
DL6ER 3aa838bbe4
Implement black- and whitelist searching with SQL statements. We use the ESCAPE clause in the LIKE query as the underscore "_" wildcard matches any single character but we want to suppress this behavior (underscores can be legitimate part of domains)
5 years ago
Dan Schaper 5532df24e4
Pi-hole Debug - tricorder upload function calls
5 years ago
DL6ER 0bc112ce52
Query only those columns we actually use when showing domains on the CLI. Show date of last modification instead of addition date for domains.
5 years ago