Commit Graph

41 Commits (71d2dced8dd98ce1b1bf67e2ebbae981cf85287c)

Author SHA1 Message Date
Matthew Wild 2b449510c7 util.xmppstream: When error is 'no-stream', pass the received tagname to the error handler 12 years ago
Matthew Wild 618661cda2 util.xmppstream: Also disable CharacterData merging after stream restarts 12 years ago
Matthew Wild 7502919e90 util.xmppstream: Disable LuaExpat's buffering (if possible) 12 years ago
Matthew Wild d4e4954f3c util.xmppstream: Implement stanza size limiting, default limit 10MB 12 years ago
Kim Alvefur 3015aac8bc util.*: Remove use of module() function, make all module functions local and return them in a table at the end 11 years ago
Kim Alvefur 5e9e11b7bc util.xmppstream: Don't include empty stream ID in stream header (got here from mod_c2s) 12 years ago
Kim Alvefur dba9b9f178 util.xmppstream: Check for callback that may add stream header attributes 12 years ago
Kim Alvefur 038d775543 mod_c2s, mod_s2s, mod_component, util.xmppstream: Move all session:open_stream() functions to util.xmppstream 12 years ago
Florian Zeitz 4b618a8727 Remove all trailing whitespace 13 years ago
Waqas Hussain 73a7d5a1ce util.xmppstream: Include error stanza in error message if no error handler is available. 13 years ago
Waqas Hussain 90e3f561fa util.xmppstream: Optimize attribute processing. 14 years ago
Waqas Hussain ea7586b363 util.xmppstream: Have faith in the XML parser matching start and end tags. 14 years ago
Waqas Hussain 3a34c326b3 util.xmppstream: Remove some unnecessary code. 14 years ago
Waqas Hussain 766d32e20c util.dependencies, util.xmppstream: Move LuaExpat version checking to util.dependencies. 14 years ago
Waqas Hussain c789df4526 util.xmppstream: A little cleanup. 14 years ago
Matthew Wild def542a8fe util.xmppstream: Allow stream_ns = "" for parsing streams with no xmlns 15 years ago
Matthew Wild 0c8d2cefc7 util.xmppstream: Expose ns_separator and ns_pattern 15 years ago
Matthew Wild c662c73374 util.xmppstream: Expose ns_separator and ns_pattern 15 years ago
Waqas Hussain 57683f24cf util.xmppstream: Check to make sure parser.stop is present before calling it. 15 years ago
Matthew Wild f957dec301 util.xmppstream: Reject XML comments, processing instructions and (if supported by LuaExpat) DTDs. If not supported, log a warning. 15 years ago
Matthew Wild ad47950b37 util.xmppstream: Reject XML comments, processing instructions and (if supported by LuaExpat) DTDs. If not supported, log a warning. 15 years ago
Waqas Hussain fb331b2a58 util.xmppstream: Optimized stanza building by bypassing the stanza API. 15 years ago
Matthew Wild bfc6ce8561 util.xmppstream: Allow stream_ns = "" for parsing streams with no xmlns 15 years ago
Waqas Hussain f79be6e720 util.xmppstream: Fix logger name. 15 years ago
Waqas Hussain 00171e2bb5 util.xmppstream: Fix logger name. 15 years ago
Waqas Hussain 539b221189 util.stanza, util.xmppstream, core.xmlhandlers: Allow stanza.last_add to be nil, and set it nil by default. Saves a table allocation per-element. 20% faster stanza building. 15 years ago
Waqas Hussain 22ee83cf0c util.xmppstream: Preserve the stream content namespace on descendents of elements which are in another namespace. 15 years ago
Waqas Hussain b7e51a203d Monster whitespace commit (beware the whitespace monster). 16 years ago
Waqas Hussain 0efcfb0a8a util.xmppstream: Removed some useless property assignments. 16 years ago
Matthew Wild 48b695c7e5 util.xmppstream: Add set_session() method to change the session that a stream is associated with 16 years ago
Matthew Wild aa0ed5d64b util.xmppstream: Stream objects now just have feed/reset methods 16 years ago
Matthew Wild 2c597f0fa4 util.xmppstream: new() now returns a parser object 16 years ago
Matthew Wild 1f06159ffa util.xmppstream: Initial commit 16 years ago
Waqas Hussain 32befbdd6e xmlhandlers: Removed unused variables. 16 years ago
Waqas Hussain b713b42e1b xmlhandlers: A little optimization. 16 years ago
Waqas Hussain 05f3218e10 xmlhandlers: Rearranged a little code. 16 years ago
Waqas Hussain e8b118df7d xmlhandlers: Fixed indentation and added some semicolons. 16 years ago
Matthew Wild 9858c0f2fc xmlhandlers: Move stream-error detection to somewhere more appropriate (it was never reached) - s2s stream errors now reported properly 16 years ago
Matthew Wild a1ca8f3d8a xmlhandlers: More refactoring, split up stream_ns and stream_tag, add stream_error_tag so that callers don't need to be so worried about the separator we use 16 years ago
Matthew Wild 0f8fb8c50f xmlhandlers: Define ns_separator and ns_pattern to save repeating it in literal form throughout the file 16 years ago
Waqas Hussain beb6fa2f21 core.xmlhandlers: Fixed processing of empty namespaces (which caused an issue with jwchat). 16 years ago
Waqas Hussain 316bc45e71 Changed separator between attribute names and prefixes from '|' to '\1' (optimization and cleanup). 16 years ago
Matthew Wild 0664ac358a xmlhandlers: Reset state on error or stream close, fixes possible traceback 17 years ago
Matthew Wild 118883d655 Remove version number from copyright headers 17 years ago
Waqas Hussain 4730388db7 xmlhandlers: Remove numeric attributes 17 years ago
Waqas Hussain b3c0964aa1 xmlhandlers: Removed another unnecessary check 17 years ago
Waqas Hussain 7bfd9cc259 xmlhandlers: Removed an unnecessary check 17 years ago
Waqas Hussain 49f84f6dbf core.xmlhandlers: Removed unused variables 17 years ago
Matthew Wild 82a3b3c3eb xmlhandlers: Fix tag pattern again for the default namespace 17 years ago
Matthew Wild 05fbcb767c core.xmlhandlers: expat is the XML parser, not us. Don't reject valid XML. 17 years ago