aboutsummaryrefslogtreecommitdiffstats
path: root/util/xmppstream.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.xmppstream: Reduce default xmppstream limit to 1MBMatthew Wild2021-05-101-1/+1
|
* util.xmppstream: Explicitly release old parser object on stream resetMatthew Wild2018-07-311-1/+6
|
* util.xmppstream: Perfom validation of XML declaration parametersMatthew Wild2018-07-111-10/+13
|
* vairious: Add annotation when an empty environment is set [luacheck]Kim Alvefur2018-02-281-0/+1
|
* util: Various minor changes to please [luacheck]Kim Alvefur2017-11-101-4/+10
|
* util.xmppstream: Remove namespace tracking, it's broken as implementedMatthew Wild2016-03-051-23/+0
| | | | | The code fails to handle namespaces on the initial opening tag (when 'stanza' is nil). Fixing this seems not worth the effort for a feature that is not being used.
* util.stanza, util.xml, util.xmppstream: Add support for tracking defined ↵Matthew Wild2015-12-081-0/+23
| | | | namespaces and their prefix (stanza.namespaces), knowing/preserving prefix names is required for some applications (thanks daurnimator)
* util.*: Remove use of module() function, make all module functions local and ↵Kim Alvefur2015-02-211-7/+9
| | | | return them in a table at the end
* Merge 0.9->0.10Matthew Wild2014-08-281-1/+1
|\
| * util.xmppstream: When error is 'no-stream', pass the received tagname to the ↵Matthew Wild2014-08-231-1/+1
| | | | | | | | error handler
* | util.xmppstream: Don't include empty stream ID in stream header (got here ↵Kim Alvefur2014-08-271-1/+1
| | | | | | | | from mod_c2s)
* | util.xmppstream: Check for callback that may add stream header attributesKim Alvefur2014-04-181-0/+3
| |
* | mod_c2s, mod_s2s, mod_component, util.xmppstream: Move all ↵Kim Alvefur2014-04-101-0/+16
| | | | | | | | session:open_stream() functions to util.xmppstream
* | Merge 0.9->0.10Matthew Wild2014-04-021-12/+12
|\ \ | |/ |/|
| * Remove all trailing whitespaceFlorian Zeitz2013-08-091-12/+12
| |
* | util.xmppstream: Also disable CharacterData merging after stream restartsMatthew Wild2014-04-021-1/+1
| |
* | util.xmppstream: Disable LuaExpat's buffering (if possible)Matthew Wild2014-04-021-3/+3
| |
* | util.xmppstream: Implement stanza size limiting, default limit 10MBMatthew Wild2014-03-301-6/+80
|/
* util.xmppstream: Include error stanza in error message if no error handler ↵Waqas Hussain2013-01-261-1/+1
| | | | is available.
* util.xmppstream: Optimize attribute processing.Waqas Hussain2012-01-251-10/+9
|
* util.xmppstream: Have faith in the XML parser matching start and end tags.Waqas Hussain2012-01-251-10/+2
|
* util.xmppstream: Remove some unnecessary code.Waqas Hussain2012-01-251-2/+0
|
* util.dependencies, util.xmppstream: Move LuaExpat version checking to ↵Waqas Hussain2011-11-221-7/+0
| | | | util.dependencies.
* util.xmppstream: A little cleanup.Waqas Hussain2011-11-221-8/+2
|
* Merge 0.8->trunkMatthew Wild2011-06-051-1/+1
|\
| * util.xmppstream: Check to make sure parser.stop is present before calling it.Waqas Hussain2011-06-051-1/+1
| |
* | Merge 0.8->trunkMatthew Wild2011-06-021-2/+5
|\|
| * Merge 0.7->0.8Matthew Wild2011-06-021-2/+5
| |
* | Merge 0.8->trunkMatthew Wild2011-06-021-1/+0
|\|
| * Merge 0.7->0.8Matthew Wild2011-06-021-1/+0
| |
| * util.xmppstream: Reject XML comments, processing instructions and (if ↵Matthew Wild2011-06-011-0/+21
| | | | | | | | supported by LuaExpat) DTDs. If not supported, log a warning.
| * util.xmppstream: Allow stream_ns = "" for parsing streams with no xmlnsMatthew Wild2010-12-211-1/+4
| |
| * util.xmppstream: Expose ns_separator and ns_patternMatthew Wild2010-12-071-0/+3
| |
| * util.xmppstream: Fix logger name.Waqas Hussain2010-12-031-1/+1
| |
* | util.xmppstream: Reject XML comments, processing instructions and (if ↵Matthew Wild2011-06-011-0/+21
| | | | | | | | supported by LuaExpat) DTDs. If not supported, log a warning.
* | util.xmppstream: Optimized stanza building by bypassing the stanza API.Waqas Hussain2010-12-291-7/+16
| |
* | util.xmppstream: Allow stream_ns = "" for parsing streams with no xmlnsMatthew Wild2010-12-211-1/+4
| |
* | util.xmppstream: Expose ns_separator and ns_patternMatthew Wild2010-12-071-0/+3
| |
* | util.xmppstream: Fix logger name.Waqas Hussain2010-12-031-1/+1
|/
* util.stanza, util.xmppstream, core.xmlhandlers: Allow stanza.last_add to be ↵Waqas Hussain2010-11-261-1/+2
| | | | nil, and set it nil by default. Saves a table allocation per-element. 20% faster stanza building.
* util.xmppstream: Preserve the stream content namespace on descendents of ↵Waqas Hussain2010-11-201-1/+7
| | | | elements which are in another namespace.
* Monster whitespace commit (beware the whitespace monster).Waqas Hussain2010-10-161-2/+2
|
* util.xmppstream: Removed some useless property assignments.Waqas Hussain2010-08-031-4/+0
|
* util.xmppstream: Add set_session() method to change the session that a ↵Matthew Wild2010-08-021-2/+8
| | | | stream is associated with
* util.xmppstream: Stream objects now just have feed/reset methodsMatthew Wild2010-05-091-4/+22
|
* Merge 0.7->trunkMatthew Wild2010-03-221-2/+2
|
* util.xmppstream: new() now returns a parser objectMatthew Wild2010-03-221-4/+9
|
* util.xmppstream: Initial commitMatthew Wild2010-03-221-0/+145