Commit Graph

1464 Commits

Author SHA1 Message Date
Adam Warner
d8706620de Replace paypal link with link to pi-hole.net donate page
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-05-09 12:57:15 +01:00
DL6ER
cc4e3c9a95 Query Log and long-term data Query Log: Substitute empty domains by "."
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-05-07 09:17:47 +02:00
DL6ER
b86ff763c0 Address xo complaints.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-05-07 07:52:18 +02:00
Adam Warner
68ce56fc56 show a clickable "." when there is a blank domain in the top domain lists
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-05-06 23:19:50 +01:00
XhmikosR
bdde1e6667 Use text() when retrieving the token. (#1237)
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-04 10:52:00 +03:00
XhmikosR
0e35b415ea JS: test for length explicitly. (#1240)
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-04 10:50:13 +03:00
Adam Warner
6e5bbfb68a Check IP addresses read in from dns-server.conf are valid before adding them to the array.
Fix for CVE-2020-12620

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-05-03 22:47:33 +01:00
DL6ER
81a2932f6a Merge branch 'release/v5.0' into tweak/trim_domains_input
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-28 21:12:45 +02:00
Dan Schaper
eaf2d7ed62 Merge pull request #1226 from pi-hole/tweak/allow_()_in_urls
Allow ( and ) in adlist URLs.
2020-04-28 11:46:32 -07:00
DL6ER
527c2f114b Merge pull request #1229 from pi-hole/tweak/custom_dns
Custom DNS page -> Local DNS Records
2020-04-28 20:30:23 +02:00
DL6ER
9cf73959fd Rename Custom DNS page.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-28 18:23:13 +00:00
DL6ER
abf6e9f7a2 Merge pull request #1210 from pi-hole/fix/regex_link_multiple_tabs
Prevent multiple tabs from being opened when clicking on a regex link on the Query Log page
2020-04-28 20:06:03 +02:00
DL6ER
4889350038 Merge branch 'release/v5.0' into tweak/trim_domains_input
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-28 17:30:13 +00:00
DL6ER
79539bdd6c Merge pull request #1121 from pi-hole/fix/queries_over_time
Fix tooltip percentage computation and more...
2020-04-28 04:36:02 +02:00
DL6ER
6c26852295 Use classes for highlighting to ensure the alternate row colors are not lost when removing a column from the selection.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-26 21:51:38 +00:00
DL6ER
cb3be64a23 Simply reply type code.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-26 09:57:11 +02:00
DL6ER
84046528bf Allow ( and ) in adlist URLs.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-26 09:31:45 +02:00
DL6ER
4d9409e708 Apply filtering events only on Ctrl/Command/Shift + Click.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-25 15:20:58 +02:00
DL6ER
1466ecd486 Add reply type filtering.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-25 15:04:09 +02:00
DL6ER
f17b216b6b As of ICU 55.1 (released 2015-04-01) the IDNA2003 APIs are deprecated, because UTS #46 should be preferred over the obsolete IDNA 2003 variant. Implement this change. Fixes #1223
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-25 07:02:37 +02:00
DL6ER
82f4549219 Add filtering on status column.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-25 06:39:00 +02:00
DL6ER
fcd4751cb7 Implement selective undoing using the Shift key.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-24 12:09:55 +02:00
DL6ER
6f2a878371 Store filtering columns in array instead of in a string. This makes adding a column multiple times impossible.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-24 11:50:55 +02:00
DL6ER
77b421b133 Show how many domains have been added in case of an error.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-23 13:47:50 +02:00
DL6ER
7d1163ff9c Try to be clearer with the "failed to add domain" message by showing the original input when idn_to_ascii() failed and by showing both, the original and the converted domain when the conversion result itself is invalid.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-23 11:39:57 +02:00
DL6ER
14dd1350df Strip whitespaces from the beginning and end of user input to prevent errors getting triggered due to users trying to add "empty" domains.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-23 11:27:24 +02:00
DL6ER
51064df4fd Remove pointer cursor when auto-filtering is disabled.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-23 09:34:06 +02:00
DL6ER
c24900ddff Reduce code duplication
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-23 09:30:18 +02:00
DL6ER
728d907780 Add meta key modifier and highlight filtering columns
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-23 09:17:10 +02:00
DL6ER
c49bcb1454 Merge pull request #1147 from Th3M3/fix/custom_tooltips
tweak chartjs customtooltips
2020-04-21 16:34:19 +02:00
DL6ER
2439c3c76a Add comment that holding down [Ctrl] can do something magical
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-21 15:38:46 +02:00
DL6ER
0aecefcbc8 Add comments and simplify code
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-21 11:41:16 +02:00
DL6ER
8c82872f4a Add missing space in front of and on the dynamically generated button text.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-21 11:32:15 +02:00
DL6ER
8c1503cac5 Show filtering details on clear button.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-21 11:20:17 +02:00
DL6ER
e9ba5e440a Add [Ctrl] key action to combine filters.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-21 10:56:23 +02:00
DL6ER
6fa9d036b4 Initialize regex filter mode and clear search field (if set previously)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-21 10:39:40 +02:00
DL6ER
7d0882723c Add exact searching using modified regex for query type, domain, and client.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-21 10:33:37 +02:00
DL6ER
c1ddf66487 Merge pull request #1206 from pi-hole/fix/dhcp_static_error
Check for existence and readability of static leases file before trying to access it
2020-04-21 10:07:15 +02:00
Samu Voutilainen
39ec67829b Execute pihole through wrapper
All different exec() calls basically just calls sudo pihole,
with various different syntaxes. Using a wrapper function
allows sanitization of arguments for better safety.

Signed-off-by: Samu Voutilainen <smar@smar.fi>
2020-04-17 07:55:16 +03:00
DL6ER
2e7b9191fc Update scripts/pi-hole/js/queries.js
Co-Authored-By: TheME <andreas_fl@outlook.com>
2020-04-14 19:54:43 +02:00
DL6ER
8ad3b70f96 We should also accept open-ended IPv6 addresses such as, e.g., fda2:2001:5555::
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-13 09:48:08 +02:00
Th3M3
fadc6073db tweak chartjs customtooltips...
...and disable 'maintainAspectRatio' for the clients chart to avoid a squeezed display on small screens.

Signed-off-by: Th3M3 <the_me@outlook.de>
2020-04-12 15:25:29 +02:00
XhmikosR
ae13014565 Adapt to the new rules.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-04-10 18:34:47 +00:00
DL6ER
373d59f751 Improve conditional forwarding settings so users can specify the subnet according to their needs.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-10 10:54:41 +02:00
DL6ER
0f21f6d269 Release possible previous onClick event handler on regex links to avoid multiple tabs being opened on click.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-10 10:45:26 +02:00
DL6ER
a64810e00e Merge branch 'release/v5.0' into devel
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-08 12:25:18 +02:00
DL6ER
43b45d3da7 Merge pull request #1100 from Ghalid/patch-1
Disable text correction features, change types to make input fields easier to type in (especially for mobile devices)
2020-04-07 13:59:44 +02:00
DL6ER
0f892c9ffc Check for existance and readability of static leases file before trying to access it.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-07 12:30:51 +02:00
Th3M3
3ea59d5d36 shorter button textes & cleanup
Signed-off-by: Th3M3 <the_me@outlook.de>
2020-04-05 20:49:53 +02:00
Th3M3
fd983a2b68 improve multiselect
Signed-off-by: Th3M3 <the_me@outlook.de>
2020-04-05 14:56:28 +02:00