Commit graph

2991 commits

Author SHA1 Message Date
Hannu Nyman
b41f37739e treewide: i18n - Sync and backport translations
Sync translations.
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-08-10 22:11:52 +03:00
Ansuel Smith
7b931da477 luci-mod-network: handle multiple mac for static lease
The mac section for the static lease doesn't correctly handle when multiple mac are set for a rule.
Fixes: #4291

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
(cherry picked from commit 6c9a6c334e)
2021-07-08 08:27:20 +02:00
Hannu Nyman
91f3929500 treewide: i18n - Backport translations from master
Backport translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-06-08 20:03:35 +03:00
Jo-Philipp Wich
d0cf6e4a57 luci-mod-status: fix potential XSS via specially crafted DNS names
When an upstream NS returns PTR domain names containing HTML, it is
added verbatim to the connection status table.

Prevent this issue by HTML escaping any values in the source and
destination columns.

Fixes: CVE-2021-32019
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 3c66c5b165)
2021-05-12 12:03:19 +02:00
Hannu Nyman
ec81a49945 treewide: backport translations i18n
Backport translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-05-08 17:09:09 +03:00
Hannu Nyman
c19c7167e3 treewide: i18n - Backport translations
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-04-17 19:09:12 +03:00
Jo-Philipp Wich
d763f9767e luci-base: form.js: fix AbstractValue.textvalue() for uci list options
Serialize the uci list value into a space separated string before passing
it to String.format() for HTML escaping. Without that change, empty strings
were returned whenever the underlying uci get operation yieled an array.

Fixes: #4993
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 5c792aefc7)
2021-04-16 17:33:04 +02:00
Henrique de Moraes Holschuh
254083c17c luci-mod-system: implement system.description, system.notes
Implement two new text "options" for UCI system config, intended to
help humans describe the device.

"system.description" is a short, single-line description suitable for
selector UIs in remote administration applications, or remote UCI (over
ubus RPC), etc.  It would also be suitable as a default for LLDP/SNMP
"system description".

"system.notes" is a multi-line, free-form text field that can be used in
any way the user wishes, e.g. to hold installation notes, or unit serial
number and inventory number, location, etc.

Signed-off-by: Henrique de Moraes Holschuh <henrique@nic.br>
2021-04-06 23:21:46 +03:00
Hannu Nyman
7456e2aada treewide: Backport translations and sync
Backport from master and sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-03-27 11:05:01 +02:00
Hannu Nyman
731d2e37d4 treewide: i18n backport and sync
Backport translations from master and sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-03-13 09:45:36 +02:00
Florian Eckert
b4025cf242
Merge pull request #4844 from oofnikj/4510_backport_gre
luci-proto-gre: backport to 19.07
2021-03-11 08:04:23 +01:00
Jo-Philipp Wich
a483ae4371 luci-base: validation.js: optionally support negative prefixes
Support negative prefix length in the `cidr`, `cidr4`, `cidr6`, `ipmask`,
`ipmask4` and `ipmask6` data types when an optional truish flag is passed
to the datatype name.

Ref: #4812
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit cd06e708d8)
2021-03-01 15:19:21 +01:00
Jo-Philipp Wich
ee07c30207 luci-base: network.js: sort interface statuses by metric, then name
Fixes: #4693
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 0ee422b4c0)
2021-03-01 10:44:06 +01:00
Sergio E. Nemirowski
89c7b8ab0b luci-proto-gre: update i18n and fix typo
Signed-off-by: Sergio E. Nemirowski <sergio@outerface.net>
Signed-off-by: Jordan Sokolic <oofnik@gmail.com>
2021-03-01 11:04:52 +02:00
Jo-Philipp Wich
5e807edb23 luci-base: firewall.js: manage zomne networks as list
Fixes: #4827
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 49ecaf6090)
2021-03-01 08:56:25 +01:00
Hannu Nyman
aadfafadd6 treewide: i18n backport and sync translations
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-02-25 17:18:37 +02:00
Jo-Philipp Wich
c33df8f75c luci-base: ui.js: resolve parent ul early in UIDropdown.toggleItem()
The parent node of the current li might be null after collapsing the
dropdown, so resolve the parent ul early to avoid passing null to
subsequent calls.

Fixes clearing custom input values in DynamicList dropdowns.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit b8d2bcd432)
2021-02-19 11:32:25 +01:00
Hannu Nyman
34e0d656a4 treewide: i18n backport and sync translations
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-02-13 10:33:55 +02:00
Jo-Philipp Wich
1f74e21336 luci-base: luci.js: fix sortedKeys() ordering
Chrome does not properly sort arrays when the sort function returns boolean
results, in contrast to Firefox which does.

Fix the issue by returning a numerical result instead.

Fixes: #4792
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 3c166c25de)
2021-02-10 00:08:27 +01:00
Hannu Nyman
bf8b0bbef1 timezone data: update to 2021a
Update timezone data to 2021a.

http://mm.icann.org/pipermail/tz-announce/2021-January/000065.html

* South Sudan changes from +03 to +02

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit af1f961589)
2021-01-29 20:58:03 +02:00
Hannu Nyman
24049b1490 treewide: i18n - Sync and backport translations from master
Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-01-29 20:57:29 +02:00
Jo-Philipp Wich
6ba9740b61 luci-mod-network: properly handle wireless devices when adding interfaces
Wireless device names must not be added as list/option ifname, but the
network must be backreferenced in config wifi-iface instead in these
cases.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 7b5b7fbcd6)
2021-01-18 16:58:56 +01:00
Hannu Nyman
0386a295d7 treewide: i18n - backport translations from master
Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-01-16 11:10:09 +02:00
Hannu Nyman
efe43b8177 luci-base: correct button name on flash page help text
Correct the help text in the flash page to match the current
buttons. 'Continue' instead of "Proceed".

Adjust translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit e2ac2e92b0
 languages not existing in 19.07 removed from the commit)
2021-01-12 19:28:23 +02:00
Hannu Nyman
bf4fbd98b7 timezone data: update to 2020f
Update timezone data to 2020f.

2020e: http://mm.icann.org/pipermail/tz-announce/2020-December/000063.html
       Volgograd switches to Moscow time.
       Australia/Currie removed as identical to Australia/Hobart
2020f: http://mm.icann.org/pipermail/tz-announce/2020-December/000064.html

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 9e4391e3a6)
2021-01-09 20:24:14 +02:00
Hannu Nyman
cc2787b05d treewide: i18n - backport again
Backport translations again, after fixing the weblate
conflicts in master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-12-29 13:36:34 +02:00
Hannu Nyman
b007fd0e57 treewide: i18n - backport translations
Backport translations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-12-29 13:18:10 +02:00
Jo-Philipp Wich
b9c806b064 luci-mod-system: fix reference to undefined variable
Fixes: 24550446c ("luci-mod-system: fix parsing SSH pubkeys with options")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-12-23 17:11:48 +01:00
Jo-Philipp Wich
24550446ca luci-mod-system: fix parsing SSH pubkeys with options
Also eliminate some duplicate code while we're at it.

Fixes: #4684
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 846b89c5bf)
2020-12-23 15:35:26 +01:00
Hannu Nyman
9ea6057b62 treewide: Backport and sync translations
Backport translations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-12-19 11:54:47 +02:00
Hannu Nyman
51f55b58b7 treewide: i18n - backport and sync translations
Backport translations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-12-06 18:00:26 +02:00
Hannu Nyman
bf1b7d36eb treewide: i18n - backport and sync translations
Backport translations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-11-28 09:13:19 +02:00
Hannu Nyman
92c01e2352 treewide: i18n - backport and sync translations
Backport translations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-11-20 19:51:44 +02:00
Hannu Nyman
50b7ab5734 treewide: i18n - backport and sync translations
Backport translations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-11-14 15:36:34 +02:00
Jo-Philipp Wich
0e6a8c270a luci-base: tools.widgets.NetworkSelect: properly validate multi select
Fixes: 2b99473f2 ("luci-base: tools.widget.NetworkSelect: disallow invalid network names")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 5c5b1340e5)
2020-11-07 00:48:13 +01:00
Jo-Philipp Wich
69d668c465 luci-base: tools.widget.NetworkSelect: disallow invalid network names
Fixes: #4523, #4573
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 2b99473f2c)
2020-11-07 00:42:58 +01:00
Hannu Nyman
3718fded41 timezone data: update to 2020d
Update timezone data to 2020d

2020b: http://mm.icann.org/pipermail/tz-announce/2020-October/000059.html
     Macquarie Island has stayed in sync with Tasmania since 2011.
     Casey, Antarctica is at +08 in winter and +11 in summer.

2020c: http://mm.icann.org/pipermail/tz-announce/2020-October/000060.html

2020d: http://mm.icann.org/pipermail/tz-announce/2020-October/000062.html
     Palestine ends DST earlier than predicted, on 2020-10-24.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit ce3402a453)
2020-10-31 20:23:50 +02:00
Hannu Nyman
4f2f3dfd45 treewide: i18n - backport and sync translations
Backport translations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-10-26 22:30:28 +02:00
Hannu Nyman
5352f8d70f luci-base: set the fallback default of rollback timeout to 90s
Set the fallback value of the config change rollback timeout
to 90 seconds to match the change in /etc/config/luci by commit
81cf99a50.

That commit changed the value in the config file, but did
not change the underlying fallback values that do get applied
when there is no proper config item in etc/config/luci.

Users sysupgrading from old systems may have carried an ancient
/etc/config/luci (without rollback config) with them, so this
change should help them to see the intended user experience.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

(cherry picked from commit b0fe11ffc4)
2020-10-26 22:26:08 +02:00
Hannu Nyman
3d5201928e treewide: i18n - backport and sync translations
Backport translations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-10-13 18:50:33 +03:00
Hannu Nyman
9883bb397e treewide: i18n - backport and sync translations
Backport transations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-09-28 16:31:38 +03:00
Hannu Nyman
8aceafe456 luci-base: tweak busybox top regex to accept 'm' in large VSZ
Tweak the lua regex string for process list, so that processes
with extremely large memory sizes (over 100 MB) are matched.
For those large processes busybox top shows a MB value like '234m'
instead of a normal kB value like 234000.

Fixes #4425

Reference to https://github.com/openwrt/luci/issues/4425#issuecomment-694073479

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 4f2ecd88fd)
2020-09-19 08:56:39 +03:00
Hannu Nyman
d98fff3523 treewide: i18n - backport and sync translations
Backport transations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-09-17 16:59:12 +03:00
Jo-Philipp Wich
146930008b luci-base: dhcp.js: allow hostname to be "*"
Fixes: #4430
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit bdcd094963)
2020-09-16 10:24:27 +02:00
Hannu Nyman
c3a0c6045c treewide: i18n - backport and sync translations
Backport transations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-08-29 21:37:11 +03:00
Hannu Nyman
57456a75ab treewide: i18n - backport and sync translations
Backport translations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-08-16 22:48:07 +03:00
Hannu Nyman
97553f8065 luci-base i18n: fix translations related to password-SSH linkage
Fix translations of themes' headers related to password & SSH.

Adapted backport of commit 641c3b88ae.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-08-16 22:42:36 +03:00
Hannu Nyman
4d5c88bf1a treewide: backport and sync translations
Backport translations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-08-03 20:23:49 +03:00
Jo-Philipp Wich
8750495992 luci-mod-system: ignore empty /proc/mtd on flash page
A present, but empty /proc/mtd causes validation on the flash page to fail,
preventing any other operation.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d2d3738d90)
2020-07-22 10:29:45 +02:00
Hannu Nyman
91ac7214be treewide: i18n - backport translations
Backport translations from master and sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2020-07-18 14:22:34 +03:00