Commit Graph
1545 Commits
Author SHA1 Message Date
Jo-Philipp Wich 0efb19876b libs/sgi-uhttpd: do not assume env.CONTENT_LENGTH to be a number
env.CONTENT_LENGTH as passed by uhttpd might be a string, so explicitely
convert it using tonumber().

Issue has been reported by Catalin Patulea <cat@vv.carleton.ca>

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-03-28 16:37:03 +00:00
Jo-Philipp Wich b92a01d3ae httpclient: fix parsing of IPv6 URLs (#662) 2014-02-05 13:44:07 +00:00
Jo-Philipp Wich c1bd1e59d3 build: fix clean targets in Makefiles (#667) 2014-02-05 13:35:34 +00:00
Jo-Philipp Wich cb6bdd9f50 libs/core: further network model compatibility fixes 2013-12-03 15:23:09 +00:00
Jo-Philipp Wich e22e6dd9ca libs/core: make luci.model.network compatible with new wireless netifd integration 2013-12-03 15:04:34 +00:00
Jo-Philipp Wich 297d368ecc libs/json: add proper support for decoding unicode escapes 2013-12-03 15:04:32 +00:00
Patrick Grimm 54001e307e add luaneightbl: this is an arp replacement for ipv6. neightbl.get(wlan0) return ip,mac table this can use in a for loop "for ip,mac in pairs(t) do" Thanx Cyrus 2013-07-07 12:45:59 +00:00
Steven Barth 5200eb1577 Add support for stateful DHCPv6 2013-05-23 10:14:20 +00:00
Jo-Philipp Wich 5fed5c91f8 libs/web: do not cast to string when using network_netlist widget (#560) 2013-04-04 14:06:26 +00:00
Jo-Philipp Wich 875bfd7706 libs/core: do not consider alternative routing tables in luci.model.network for now 2013-04-04 14:06:12 +00:00
Jo-Philipp Wich 4fa798dffe libs/sys: fix incomplete options table when parsing iptables rules 2013-03-27 13:28:26 +00:00
Jo-Philipp Wich f804a21c8d libs/core: fallback to ipv6-prefix-assignment if ipv6-address is empty 2013-03-19 17:26:01 +00:00
Jo-Philipp Wich c6712bdc3c libs/web: allow '!' and '.' symbols in phonedigit datatype 2013-02-05 13:15:48 +00:00
Manuel Munz 5b129819cc modules/admin-full: Add swap info to admin_status page if swap is available, #533 2013-01-30 13:36:20 +00:00
Jo-Philipp Wich 6bec9b6bcf libs/web: further endian fixes in lmo processing 2013-01-27 18:18:47 +00:00
Jo-Philipp Wich bb6ba23b3d libs/web: add missing byteswap of index offset when parsing index offset of lmo files 2013-01-26 19:57:18 +00:00
Jo-Philipp Wich ad3ec0d4ee libs/web: fix endian issues in lmo conversion leading to a bad index order 2013-01-26 18:38:01 +00:00
Jo-Philipp Wich 7fd1bb5831 libs/web: support dependencies on mvalues 2013-01-22 11:52:27 +00:00
Jo-Philipp Wich 686de0fbec move dhcpv6 support into luci-proto-6x4, rename luci-proto-6x4 to luci-proto-ipv6 2013-01-22 10:44:28 +00:00
Jo-Philipp Wich a4f3f52d1c New IPv6 integration 2013-01-22 10:44:16 +00:00
Jo-Philipp Wich 4fec63df9e libs/core: remove now obsolete uint() wrapper in network model 2013-01-13 21:03:28 +00:00
Jo-Philipp Wich 237aa91089 libs/web: include limits.h to fix compilation on OS X (#531) 2013-01-13 18:33:21 +00:00
Jo-Philipp Wich a52a6a4f22 libs/sys: fix luci.sys.processes.list() for entries with spaces i nthe STAT column (#528) 2013-01-11 18:16:26 +00:00
Jo-Philipp Wich 018cbe69a9 libs/web: fix missing escapes in network_ifacelist widget 2012-12-25 02:43:03 +00:00
Jo-Philipp Wich 33fba71fc9 libs/core: make luci.util.spairs(), kspairs() and vspairs() return the sequential index as 3rd variable 2012-12-25 02:28:20 +00:00
Jo-Philipp Wich 8cfa5cc7c5 don't use symlink to /lib/functions.sh
Signed-off-by: Luka Perkov <luka@openwrt.org>
2012-12-20 15:01:04 +00:00
Jo-Philipp Wich d4987d7863 ccache not loading or storing cache files
I've noticed that there is nothing in my /tmp/luci-modulecache
directory. Digging into it it looks like because both the expected uid
and mode of the files doesn't match, so for security reasons they're
long being loaded or saved by ccache.lua (from the luci-lib-core
package). I'm not sure how far back this has been broken but I it
appears to have been quite some time, possibly years?

I've included a patch which updates the checks to use the right newer
function name / structure name. It decreases page load times by about
10-15% on my bcm2708 (raspberrypi). I can create a ticket if you'd
prefer. The patch is against the luci-0.11 branch but should apply to
trunk as well.

Signed-off-by: Bryan Mayland <bmayland@leoninedev.com>
2012-12-19 00:35:30 +00:00
Jo-Philipp Wich 564ca0accd libs/web: make JS String.format() and String.serialize() available as prototype options, introduce String.nobr() 2012-12-02 14:20:36 +00:00
Jo-Philipp Wich 7c3c6b013b libs/web: let luci.i18n.setlanguage() return the lang that was actually loaded 2012-12-02 13:30:46 +00:00
Jo-Philipp Wich ce8a22d1b4 libs/core: remove unused luci.util.escape(), map luci.util.striptags() to luci.template.parser.striptags() 2012-11-26 14:26:46 +00:00
Jo-Philipp Wich f7b4fd2979 libs/web: various changes in template library
- rename sanitize_pcdata() and sanitize_utf8() to pcdata() and utf8()
	- implement striptags()
2012-11-26 14:26:43 +00:00
Manuel Munz e2f3b8923d libs/web: Allow to disable buttons in cbi models from the controller 2012-11-26 13:11:41 +00:00
Jo-Philipp Wich 848e43a5b4 remove .i18n annotations from controller files 2012-11-26 12:53:43 +00:00
Daniel Golle d07036b59c "Waiting for router..." is misleading on non-router devices. Use "Waiting for changes to be applied..." instead. 2012-11-26 11:07:11 +00:00
Jo-Philipp Wich 68e9458ae0 libs/web: remove unneeded include 2012-11-25 19:22:38 +00:00
Jo-Philipp Wich cd0bb63394 libs/web: remove leftover debugging code in template_parser.c 2012-11-25 19:18:15 +00:00
Jo-Philipp Wich bb276a7c7b libs/core: use luci.template.parser.hash() instead of lmo.hash() 2012-11-25 19:18:10 +00:00
Jo-Philipp Wich 0e50aa690a libs/web: rewrite template engine, merge lmo library
- template parser: merge lmo library
	- template parser: rewrite to operate on memory mapped files
	- template parser: implement proper line number reporting on syntax errors
	- template parser: process translate tags directly and bypass Lua
	- template lmo: introduce load_catalog(), change_catalog() and close_catalog()
	- template lmo: rewrite index processing to operate directly on the memory mapped file
	- template lmo: implement binary search keys, reducing the lookup complexity to O(log n)
	- po2lmo: write sorted indixes when generating *.lmo archives
	- i18n: use the template parser for translations
	- i18n: stub load(), loadc() and clear()
	- i18n: map setlanguage() to load_catalog()
2012-11-25 19:17:55 +00:00
Jo-Philipp Wich c647ff9f0e libs/lmo: fix whitespace handling in string hashing, optimize code 2012-11-23 10:15:02 +00:00
Jo-Philipp Wich 72d1549e8b libs/lmo: canonize key strings before hashing them, fixes missing translations for original strings with line breaks or white spaces embedded 2012-11-21 23:26:30 +00:00
Jo-Philipp Wich 06c8c28bab libs/core: introduce get_status_by_address() in luci.model.network 2012-11-21 20:13:53 +00:00
Jo-Philipp Wich 2675ad1c63 libs/web: fix luci.http.write_json() to properly encode control chars in strings 2012-11-21 16:04:13 +00:00
Jo-Philipp Wich e3bb15012b libs/ipkg: simplify parsing logic to take advantage of the opkg improvements in trunk, introduce find() operation 2012-11-15 20:59:03 +00:00
Jo-Philipp Wich 431d4e8eff merge branch changes into trunk 2012-10-29 13:09:31 +00:00
Jo-Philipp Wich c802c941cb libs/web: relax validation for hostnames to allow names like _kerberos._udp.EXAMPLE.COM 2012-10-06 23:10:43 +00:00
Jo-Philipp Wich b0d3b82400 libs/web: transparently handle userdata in write_json() 2012-09-15 14:25:18 +00:00
Jo-Philipp Wich 8772db1675 libs/core: explicitely load luci.i18n in network model 2012-09-15 14:02:27 +00:00
Jo-Philipp Wich 647a0d33c3 libs/core: adapt luci.model.network for wifi-iface instances which are members of multiple networks 2012-09-15 13:10:27 +00:00
Jo-Philipp Wich 5164d55091 libs/core: remove route enabled check in network model after netifd update in OpenWrt trunk 2012-09-13 08:50:59 +00:00
Jo-Philipp Wich c4d0dd19b7 libs/web: merge luci.http.protocol fix from Fonosfera
See http://trac.fonosfera.org/fon-ng/changeset/2102/trunk/luci/libs/http .
2012-08-29 13:06:58 +00:00