summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* luci-app-firewall: add reflection_zone field to forwardsopenwrt-21.02Julien Cassette2023-07-271-0/+6
| | | | | | | | | This allows to to define multiple zones for NAT reflection rules. Fixes: #1560 Signed-off-by: Julien Cassette <julien.cassette@gmail.com> (cherry picked from commit 3f20598acf57759aeda8ef5448e60f5a70e532f9)
* timezone data: update to 2023cHannu Nyman2023-04-032-5/+5
| | | | | | | | | | | | | | | | | | Update timezone data to 2023a, 2023b, 2023c. (2023c reverts 2023b.) https://mm.icann.org/pipermail/tz-announce/2023-March/000077.html https://mm.icann.org/pipermail/tz-announce/2023-March/000078.html https://mm.icann.org/pipermail/tz-announce/2023-March/000079.html Summary: * Egypt now uses DST again, from April through October. * Much of Greenland still uses DST from 2024 on. * America/Yellowknife now links to America/Edmonton. (removed here) * Europe/Kirov and Europe/Volgograd now use the abbreviations MSK/MSD Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> (cherry picked from commit ce20b4a6e0c86313c0c6e9c89eedf8f033f5e637)
* treewide: Backport translations and syncHannu Nyman2023-03-31302-2979/+2451
| | | | | | | Backport translations from master. Sync. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* lui-theme-material: add again no password set hintFlorian Eckert2023-03-291-2/+8
| | | | | | | This was accidentally deleted with commit: bec2c7e2b50e062575f3649ccd76b81af41b9820 Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* luci-base: dispatcher.lua: prevent XSS through 404 error templateJo-Philipp Wich2023-03-101-1/+1
| | | | | | | | | Make sure to escape the user controlled URL passed as part of the error message into the error404 template in order to avoid XSS. Reported-by: 40826d <40826d@posteo.de> Signed-off-by: Jo-Philipp Wich <jo@mein.io> (backported from commit cd8bea94e61fa72a0a2ba7bc54d7b2d7b7572519)
* treewide: Backport translationsHannu Nyman2023-03-0495-1727/+5393
| | | | | | Backport translations from master. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* luci-app-sqm: Move verbose descriptions into help textToke Høiland-Jørgensen2023-03-041-24/+24
| | | | | | | | | | | The field labels contain verbose descriptions which looks terrible in the UI. Replace them with short labels and move the verbose text into the help text where it belongs. Reported by Github user @saldry at https://github.com/openwrt/luci/issues/6161 Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk> (cherry picked from commit 127c9002e6e6898631928f66774575c25b05f536)
* treewide: Backport and sync translations - i18nHannu Nyman2023-02-27169-1024/+1317
| | | | | | Backport translations from master. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* treewide: Backport translation and syncHannu Nyman2023-01-21148-1837/+2069
| | | | | | | Backport from master. Sync. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* luci-app-nlbwmon: validate date inputJo-Philipp Wich2023-01-131-0/+3
| | | | | | Fixes: #6188 Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit 7c7ac8bf0d9d554d19f5d21226110743899b8802)
* luci-app-openvpn: fix potential XSS in pageswitch templateJo-Philipp Wich2023-01-131-1/+1
| | | | | | | Ensure to escape URL instance parameter displayed in the heading. Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit 25983b9fa572a640a7ecd077378df2790266cd61)
* luci-mod-system: fix potential stored XSSJo-Philipp Wich2023-01-131-1/+1
| | | | | | | Make sure to escape the key contents in the delete confirmation dialog. Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit 0186d7eae0e123a409e9919a83fdfecc7945c984)
* treewide: Backport translations - syncHannu Nyman2022-12-28238-1566/+1762
| | | | | | | Backport translations from master. Sync. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* luci-base: fix button handling for named sectionsFlorian Eckert2022-12-131-1/+1
| | | | | | | | | | | If more than one named section is added to the page, it is currently the case, that the first button is always switched on or off during input validation of the uci section name. This is because the usage of the 'document.querySelector' function is to imprecise. Changing the search start to the element to be created, fixes this. Signed-off-by: Florian Eckert <fe@dev.tdt.de> (cherry picked from commit 440a2e79a762b4152ccb7e41c90a2826d9fb3538)
* timezone data: update to 2022gHannu Nyman2022-12-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | Update timezone data to 2022g. * https://mm.icann.org/pipermail/tz-announce/2022-November/000076.html - In the Mexican state of Chihuahua, the border strip near the US will change to agree with nearby US locations on 2022-11-30. The strip's western part, represented by Ciudad Juárez, switches from -06 all year to -07/-06 with US DST rules, like El Paso, TX. The eastern part, represented by Ojinaga, will observe US DST next year, like Presidio, TX. - A new Zone America/Ciudad_Juarez splits from America/Ojinaga. - Much of Greenland, represented by America/Nuuk, stops observing winter time after March 2023, so its daylight saving time becomes standard time. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> [adapt the commit in master, lua instead of ucode] (cherry picked from commit 7e42425e7bd56d13a38cd5c7a500166faf6548bf)
* treewide: Backport translations from masterHannu Nyman2022-11-12194-1109/+1231
| | | | | | Backport translations from master and sync. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* timezone data: update to 2022fHannu Nyman2022-10-312-12/+8
| | | | | | | | | | | | | | | | | Update timezone data to 2022f. * http://mm.icann.org/pipermail/tz-announce/2022-October/000075.html - Mexico will no longer observe DST after 2022, except for areas near the US border that continue to observe US DST rules. On 2022-10-30 at 02:00 the Mexican state of Chihuahua moves from -07 (-06 with DST) to year-round -06. - Fiji will not observe DST in 2022/3. For now, assume DST is suspended indefinitely. - Simplify four Ontario zones. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> [adapt the commit in master, lua instead of ucode] (cherry picked from commit ec905e6e9744d68106978907db48ac75a5966db4)
* timezone data: update to 2022eHannu Nyman2022-10-241-6/+4
| | | | | | | | | | | | | Update timezone data to 2022e. * http://mm.icann.org/pipermail/tz-announce/2022-September/000073.html * http://mm.icann.org/pipermail/tz-announce/2022-October/000074.html - Palestine transitions are now Saturdays at 02:00. - Simplify three Ukraine zones into one. - Jordan and Syria switch from +02/+03 with DST to year-round +03. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> (cherry picked from commit 10d762eab70a9bcd233cd8cb79e32742fb2c4038)
* Merge pull request #6035 from myrlyn/openwrt-21.02_dmfixJo-Philipp Wich2022-10-181-1/+1
|\ | | | | luci-app-dockerman: change default to nil if data.blkio_weight is not defined
| * luci-app-dockerman: change default to nil if data.blkio_weight is not definedmyrlyn2022-10-181-1/+1
|/ | | | Signed-off-by: Jonathon Walker <jonathon.l.walker@gmail.com>
* sysauth: add autocomplete and id attributes to login inputsViktor Tsvetkov2022-10-152-6/+6
| | | | | | | | | | this let browser automatically fill according to HTML spec for input elements. luci-theme-bootstrap and luci-base are affected. Signed-off-by: Viktor Tsvetkov <zwetvik@gmail.com> [indentation fix] Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit 3e9d9a9dbb045c24eb93643838f8e8e3b9074e4b)
* luci-app-nut: use filesystem dependencies for configuration filesJo-Philipp Wich2022-10-151-7/+7
| | | | | | | | | | | | | Don't use uci dependencies for nut related config files as the nut packages ship with completely commented out uci files. Such files do not satisfy the uci menu dependencies as those expect at least one section within the file. To solve this issue, use a regular file dependency on /etc/config/nut_* instead. Supersedes: #5964 Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit bfc0fcfe6e97b1b39317f42d96debf3286c42696)
* treewide: Backport and sync translationsHannu Nyman2022-10-04161-898/+914
| | | | | | Backport from master, sync. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* luci-app-opkg: relax dependency parsingJo-Philipp Wich2022-09-301-1/+1
| | | | | | | | | | | | | Align depdendency parse logic with opkg to properly process certain malformed dependency specifications. In particular do not require a depdendency specification to end after the closing paren of a version constraint and perform non-greedy matching in order to extract the first version constraint only. Fixes: #5997 Ref: https://forum.openwrt.org/t/x/138328 Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit 84ba6a5c36072f74721d535104735757b005c8d6)
* luci-mod-system: sshkeys.js: prevent XSS through pubkey commentsJo-Philipp Wich2022-09-211-1/+1
| | | | | | | | | Ensure to not display public key comments verbatim in order to prevent injection of markup. Reported-by: Eric McDonald <ericmcdonald@protonmail.com> Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit 944b55738e7f9685865d5298248b7fbd7380749e)
* timezone data: update to 2022cHannu Nyman2022-09-031-2/+2
| | | | | | | | | | | | Update timezone data to 2022c. http://mm.icann.org/pipermail/tz-announce/2022-August/000071.html http://mm.icann.org/pipermail/tz-announce/2022-August/000072.html * Iran no longer observes DST after 2022. * Rename Europe/Kiev to Europe/Kyiv. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> (cherry picked from commit 10bcb228a7fc02a8e9ecb1ff584fd63b77a55afd)
* luci-mod-network: Offer ft-over-air by default for 802.11rHannu Nyman2022-09-011-1/+1
| | | | | | | | | | | OpenWrt commit 2984a0420 (cb650143 for 21.02) changed the default 802.11r Fast Transition method to be ft-over-air instead of ft-over-ds. Offer ft-over-air as the first item in the drop-down list, so that it gets selected by default when 802.11r option is enabled. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> (cherry picked from commit 2c3c7f5c50efd71bf87c068359cb0110a513186f)
* treewide: Backport translations - i18nHannu Nyman2022-08-28222-2515/+2920
| | | | | | Backport from master, sync. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* Merge pull request #5751 from MaxSKash/21.02-DHCP-lease-tableFlorian Eckert2022-08-102-2/+19
|\ | | | | [21.02]luci-mod-status,mod-network: Added fqdn-name to DHCPv4 lease table
| * luci-mod-status,mod-network: Added fqdn-name to DHCPv4 lease tableMax S Kash2022-03-312-2/+19
| | | | | | | | | | | | | | | | | | Added code to display fcdn-name in DHCPv4 lease table. (based on code in DHCPv6 lease table) Signed-off-by: Max S Kash <asukms@ya.ru> Indentation adjused and wrapped commit message Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* | Merge pull request #5920 from stangri/openwrt-21.02-luci-app-advanced-rebootStan Grishin2022-08-021-1/+1
|\ \ | | | | | | [21.02] luci-app-advanced-reboot: Fix Linksys EA4500 descriptor file
| * | luci-app-advanced-reboot: Fix Linksys EA4500 descriptor fileAndy Bartolo2022-08-021-1/+1
|/ / | | | | | | | | Signed-off-by: Andy Bartolo <andrew.bartolo@gmail.com> (cherry picked from commit 5d7446e1be05baef6463c29dc00587e5952db9fc)
* | luci-base: sys.lua: make timeout optional when parsing conntrack entriesJo-Philipp Wich2022-08-011-1/+1
| | | | | | | | | | | | Fixes: #5909 Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit abd9125fbf5e2fadc0c5ae293496680df08e6e1b)
* | luci-app-attendedsysupgrade: s/res/response/Paul Spooren2022-07-291-20/+23
| | | | | | | | | | | | | | | | | | The variable was party called `res` or `response`, always call it `response` from now on. This also solves a typo where `data.request_hash` is never set to a correct value. Signed-off-by: Paul Spooren <mail@aparcar.org> (cherry picked from commit af23d0dfc3176511ada5fb3d081f1b0a287a11bc)
* | luci-app-attendedsysupgrade: report used client versionPaul Spooren2022-07-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | This allows the backend to track popular app versions and drop support for unsed version in case of API changes. Specifically the app sends a version string in the format "luci/GIT_HASH" to the backend. Signed-off-by: Paul Spooren <mail@aparcar.org> (cherry picked from commit f368faf6789a43c2e1a26b721f8115473672eb29)
* | luci-app-attendedsysugprade: allow to reinstall imagePaul Spooren2022-07-291-1/+11
| | | | | | | | | | | | | | | | | | | | | | Now it's possible to re-install the currently running version in advanced mode. This can be useful when installing packages via `opkg` and then requesting the firmware with the packages stored in squashfs. FIXES: https://github.com/openwrt/luci/issues/5809 Signed-off-by: Paul Spooren <mail@aparcar.org> (cherry picked from commit fd72e1c23ef1569fd8f8ab71bdcb4a94f802435a)
* | treewide: Backport translations - syncHannu Nyman2022-07-28106-647/+991
| | | | | | | | | | | | Backport from master, sync. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* | luci-proto-ncm: rename `service` option to `mode`Jo-Philipp Wich2022-07-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | Package luci-proto-ncm depends on comgt-ncm which uses an option called 'mode' to set the radiomode of the modem. There is no option 'service' in the comgt-ncm scripts. Suggested-by: breenstorm <49235337+breenstorm@users.noreply.github.com> [fix commit subject, add commit message, rebase onto master branch] Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit 4d6642b636a9feaa173c568c99f4129c440ed8b8)
* | treewide: backport and sync translationsHannu Nyman2022-07-03132-1567/+1547
| | | | | | | | | | | | | | Backport translations from master. (also remove erroneous English translations) Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* | luci-base: network.js: consider uci config for Device.getType()/getParent()Jo-Philipp Wich2022-06-161-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For network devices declared in uci but not yet created by netifd, the runtime status information will be unavailable, causing methods such as `getType()` to assume plain ethernet interfaces and `getParent()` to fail resolving parent devices. Fall back to infer the information from uci configuration settings in such cases to give accurate type hints to callers. In particular, this prevents LuCI from turning wireless target networks containing a to-be-created bridge device into bridges themselves. Fixes: https://github.com/openwrt/packages/issues/18768 Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit 8effea58d7281fd4f2b6c31d534195dba27a850b)
* | treewide: Backport and sync translationsHannu Nyman2022-06-1290-586/+639
| | | | | | | | | | | | | | Backport translations from master. Sync. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* | luci-app-opkg: fix parsing package dependencies with version constraintsJo-Philipp Wich2022-06-031-1/+1
| | | | | | | | | | | | | | | | | | Due to improper ordering of regexp alternatives, version constraint operators might get undermatched. Fixes: https://github.com/openwrt/openwrt/issues/9982 Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit b84791bd029c2aaa67cbc06a15d23828f62f4608)
* | treewide: Backport translations and syncHannu Nyman2022-05-15659-8286/+9552
| | | | | | | | | | | | Backport from master, sync. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* | luci-app-adblock: s/1-7/0-6/gDirk Brenken2022-05-1036-3134/+3270
| | | | | | | | | | | | | | Fixes: #5716 Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit abbff0f4b6d6c7df7d3dc642f1c4db42b3d2c895) Signed-off-by: Dirk Brenken <dev@brenken.org>
* | luci-app-adblock: sync with 4.1.3-6Dirk Brenken2022-05-101-15/+0
| | | | | | | | | | | | | | | | * remove support for shallalist Signed-off-by: Dirk Brenken <dev@brenken.org> (cherry picked from commit 1eddbe0f3f0b00366694424f1445ea6cceb7d7d5) Signed-off-by: Dirk Brenken <dev@brenken.org>
* | luci-app-adblock: small fixesDirk Brenken2022-05-101-1/+2
| | | | | | | | | | | | | | | | | | * fix #5677 * fix 'flush cache' wording Signed-off-by: Dirk Brenken <dev@brenken.org> (cherry picked from commit 2ab828f5bf4e80f5d1cc16712df6e04b58b6eaaa) Signed-off-by: Dirk Brenken <dev@brenken.org>
* | Merge pull request #5806 from odmdas/2102-sysntpd-ifaceJo-Philipp Wich2022-05-101-0/+10
|\ \ | | | | | | [21.02] luci-mod-system: add interface selection for NTPD
| * | luci-mod-system: add interface selection for NTPDAlexey Dobrovolsky2022-05-101-0/+10
|/ / | | | | | | | | | | | | | | | | | | | | UCI option `interface` for sysntpd server was introduced in OpenWrt commit 4da60500ebd2. NTP server binds to the specified interface, or if unspecified, to all. This patch adds selection widget to LuCI. Signed-off-by: Alexey Dobrovolsky <dobrovolskiy.alexey@gmail.com> (cherry picked from commit 24ac5a2bf6d713c6878cf7be7d4e4516965c2884)
* | luci-app-ddns: fix update time calculationsmall_52022-05-031-5/+5
| | | | | | | | | | | | | | | | | | | | | | * Fix last_update overflow * Fix next_update wrong when the router is just started * Fix missing check_seconds for next_update Signed-off-by: Small_5 <61473216+small-5@users.noreply.github.com> (cherry picked from commit 58ed2b211a1add5fb2cb3750af6074c4d51c307a)
* | luci-base: sys.lua: fix parsing conntrack entries without timeoutJo-Philipp Wich2022-04-291-2/+8
| | | | | | | | | | | | | | | | | | Flow offloaded conntrack entries carry no timeout value and trip up the record parsing routine. Adjust the code to properly deal with such entries. Ref: https://forum.openwrt.org/t/offloading-breaks-connections-list/126423 Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit 531c0ecff2ca57c4bc0aacee66a0746814fefc78)