Commit Graph

898 Commits (5c1d94de1b67353da7e2c348379c8a8509a9e66a)

Author SHA1 Message Date
Kim Alvefur 158dc0f9e1 util.datamanager: Check that the global 'prosody' exists before using it (fixes nil indexing in use outside of prosody) 11 years ago
Matthew Wild 886aa3c20a Backout changeset 6e67c73f730c: not a major fix and it breaks interop with at least Isode M-Link, and possibly standards, while it's not clear it actually fixes the original problem either. 11 years ago
daurnimator 810491af12 util/dataforms: Make sure we iterate over field tags 11 years ago
Waqas Hussain 6656c56b93 util.stanza: Escape newlines and tabs (\r\n\t) when serializing stanzas. \r\n transforms into \n otherwise, and \r\n\t in attributes transforms into spaces. 11 years ago
Matthew Wild b27e7b3834 util.filters: Ignore filters being added twice (fixes issues on removal) 12 years ago
Matthew Wild 1bb5caff25 util.xmppstream: When error is 'no-stream', pass the received tagname to the error handler 12 years ago
Kim Alvefur 6af9beaccf prosodyctl: Verify that 'pidfile' is a string, show friendly error otherwise 12 years ago
Kim Alvefur ef460cbd97 util.dataforms: Add support for XEP-0221: Data Forms Media Element 12 years ago
Waqas Hussain 32b9b7ff47 util.dependencies: Check for Lua 5.1. We don't currently support any other versions. LuaJIT identifies as 5.1. 12 years ago
Matthew Wild ae885de6a2 util.xmppstream: Also disable CharacterData merging after stream restarts 12 years ago
Matthew Wild 507456f883 util.xmppstream: Disable LuaExpat's buffering (if possible) 12 years ago
Matthew Wild 36a19e92a7 util.dependencies: Log error when LuaExpat is not capable of enforcing stanza size limits 12 years ago
Matthew Wild 16a37370eb util.xmppstream: Implement stanza size limiting, default limit 10MB 12 years ago
Kim Alvefur ebf052523a util.pluginloader: Always use path separator from package.config (thanks Junne) 12 years ago
Matthew Wild 54824c98f1 util.jid: Strip trailing '.' when normalizing hostnames 12 years ago
Matthew Wild 948f787196 util.set: Remove unused variable 12 years ago
Kim Alvefur 6b44449fc4 util.filters: Fix inserting items so that higher priority filters run first 12 years ago
Matthew Wild cb75840227 util.set: Fix :include() and :exclude() methods to iterate the input set correctly 13 years ago
Florian Zeitz 17bc3cc408 util.dataforms: Return nil for empty list-mutli responses, to be consistent with other readers 13 years ago
Florian Zeitz 16b4b0ea2a util.pubsub: Check whether node exists, when deleting 13 years ago
Kim Alvefur 4a8d033ca1 util.pubsub: Fix get_subscriptions to not pass a boolean as node name (thanks jonas) 13 years ago
Kim Alvefur 146ed08e62 util.ip: Convert IPv4 mapped addresses to hex. 13 years ago
Waqas Hussain d960ec8fb7 util.json: New, faster, stricter, more compliant JSON decoder. Now returns nil,err instead of throwing errors on invalid input. 13 years ago
Waqas Hussain 11684a2d6c util.array: Wrap tostring() output in {} (otherwise empty arrays print as ""). 13 years ago
Waqas Hussain 39229adf0b util.json: Make setmetatable local. 13 years ago
Waqas Hussain eed78bab7e util.json: Fix variable name typo which broke util.json when util.array was missing. 13 years ago
Waqas Hussain 8098be4eb1 util.json: Optimize long string parsing. 13 years ago
Florian Zeitz e53d5b4f79 util.rfc{3484,6724}: Update to RFC 6724 13 years ago
Kim Alvefur 2748b362ac util.openssl: Write the distinguished_name part of the config in a consistent order 13 years ago
Florian Zeitz b6199cf81a util.hashes, util.sasl.scram: Implement SCRAM-SHA1's Hi in C 13 years ago
Florian Zeitz 1dc0a831cf util.hmac, util.hashes: Implement HMAC functions in C, and move to util.hashes 13 years ago
Matthew Wild fbee5003f7 util.prosodyctl: Initialize storagemanager on the host before initializing usermanager. This fixes brokenness when the auth provider opens the store on load (as they all do since eeea0eb2602a) (thanks nulani) 13 years ago
Waqas Hussain 0cba3cd260 util.json: New, improved, fixed codepoint to UTF-8 conversion. 13 years ago
Waqas Hussain 8cf79c1fbe util.json: Make encode(decode("[]"))=="[]". 13 years ago
Florian Zeitz 9ed5894b79 util.adhoc: New util for generating common adhoc handler patterns 13 years ago
Matthew Wild 7d92759bf8 mod_storage_sql2 (temporary name), sql.lib, util.sql: New SQL API supporting cross-module connection sharing, transactions and Things - a work in progress 13 years ago
Matthew Wild bc590ea5dc util.http: Refactor and import all necessary functions 13 years ago
Matthew Wild 8d41687872 util.iterators: Add ripairs() (ipairs() in reverse) (thanks Maranda) 13 years ago
Matthew Wild dbc9b79222 util.httpstream: Unused, remove 13 years ago
Matthew Wild 8994b3afd1 net.http, util.http: Move definitions of urlencode/decode and formencode/decode to util.http (possible to use them without unnecessary network-related dependencies) 13 years ago
Matthew Wild f056043347 util.datamanager: Clear the cache of created directories on storage failure, and retry 13 years ago
Marco Cirillo 2e7d2a24ce util.datamanager: expose path decode and encode functions. 13 years ago
Matthew Wild d64f65005c util.json: Convert \uXXXX to UTF-8 when decoding 13 years ago
Matthew Wild 552fdd0caf util.stanza: Use correct index when replacing the tag in .tags (thanks daurnimator) 13 years ago
Kim Alvefur bd72dc3f88 util.stanza: Add stanza:find(), a light weight XPath-like method 13 years ago
Matthew Wild 2aa7b4448e util.helpers: Helper helpers to log host events 13 years ago
Matthew Wild 3230dc4c0a util.stanza: :maptags(): Fixes to make loop more robust on item removal 13 years ago
Matthew Wild 533a5899e3 util.json: Add json.encode_array() (thanks B) 13 years ago
Kim Alvefur 613c9b00c4 util.{prosodyctl,openssl}: More use of config sections removed 13 years ago
Florian Zeitz 8cc295b34a util.dataforms: Add support for generating type='fixed' fields 13 years ago