Age | Commit message (Collapse) | Author |
|
When a value identical to the stored one is submitted, the CBI framework
will not emit an option write event and therfore not store the value in
the form data dictionary passed to SimpleForm.handle().
This usage pattern usally works be accident for file editor views such
as admin_system/crontab because \r\n windows style line endings are
substituted with unix \n ones before writing the data, defeating the
equality check in CBI.
When a single line without trailing newline is submitted however, the
CBI will not see a difference to the data stored in the file and clear
out the value on subsequent saves.
This commit alignes the logic used by various SimpleForm views to
behave identically and predictable:
- File data is handled in the SimpleForm.handle() callback
- The forcewrite property is used to disable equality checks
- Submission of an empty string empties the backing file
Fixes: #2737
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
f6e0564 lib: fix handling of empty multipart fields
91c01c3 lib: fix multipart state transition in boundary parsing
Fixes: #2737
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
luci-app-mwan3: change flush_conntrack option to list option
|
|
luci-base: fix duid_to_mac reference in status.lua
|
|
* fix for openwrt/packages#9148
Signed-off-by: Dirk Brenken <dev@brenken.org>
|
|
luci-theme-material: fix checkbox css StaticList view
|
|
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
|
|
Fixes: #2743
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
luci-base: handle dhcp lease from odhcpd
|
|
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
|
|
Currently only the dnsmasq lease file is read for hostname hint. If someone use only odhcpd as dhcp daemon the hostname resolution on wifi_assoc list is broken.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
|
|
Move duid_to_mac function from status.lua to sys.lua.
Implement translation from DUID-LL without header to MAC
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
|
|
Fixes: #2738
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
luci-app-samba4: Update Spanish translation
|
|
luci-app-tinyproxy: Update Spanish translation
|
|
luci-app-statistics: Update Spanish translation
|
|
luci-app-privoxy: Added Hindi translation
|
|
Signed-off-by: Simmar Kalsi <simmarkalsi@gmail.com>
|
|
luci-mod-network: move auto option to general tab
|
|
Update Spanish translation
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
|
|
luci-app-mjpg-streamer: add link option
|
|
luci-app-uhttpd: German translation
|
|
Update Spanish translation
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
|
|
Update Spanish translation
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
|
|
luci-app-unbound: match dependencies with unbound package
|
|
luci-app-hd-idle: Update Spanish translation
|
|
Update Spanish translation
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
|
|
luci-base: drop ipv6 lease status when IPV6 is not support
|
|
Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
|
|
Various improvements of the German translation
|
|
The following changes are included:
* properly handle "Präfix" as neuter
* add missing hyphens to many appearances of "Präfix"
* fix spelling
* add few missing translations
Signed-off-by: Lars Kruse <devel@sumpfralle.de>
|
|
luci-base: Update Spanish translation
|
|
luci-app-aria2: Update Spanish translation
|
|
luci-app-firewall: Update Spanish translation
|
|
luci-base: zh_CN: update Simplified Chinese translation
|
|
Update Spanish translation
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
|
|
Update Spanish translation
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
|
|
Signed-off-by: Zheng Qian <sotux82@gmail.com>
|
|
Update Spanish translation
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
|
|
luci-app-mjpg-streamer: Add Spanish translation
|
|
Add Spanish translation
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
|
|
luci-app-watchcat: Update Spanish translation
|
|
luci-app-opkg: Update Spanish translation
|
|
Update Spanish translation
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
|
|
Update Spanish translation
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
|
|
luci-app-banip: change maxqueue default / sync with banIP 0.1.1
|
|
luci-app-polipo: Update Spanish translation
|
|
luci-app-shadowsocks-libev: Udpate Spanish translation
|
|
luci-app-nlbwmon: Add Spanish translation
|
|
luci-app-adblock: Update Spanish translation
|