]> jfr.im git - irc.git/blame - software/RELEASES/ircservices/achurch.org/services/lists/ircservices-coding/2001/000068.html
rename -> *.git
[irc.git] / software / RELEASES / ircservices / achurch.org / services / lists / ircservices-coding / 2001 / 000068.html
CommitLineData
3bd189cb
JR
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2<HTML>
3 <HEAD>
4 <TITLE> [IRCServices Coding] Services 5.0 alpha 9 released
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20Services%205.0%20alpha%209%20released&In-Reply-To=">
8 <META NAME="robots" CONTENT="index,nofollow">
9 <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
10 <LINK REL="Previous" HREF="000071.html">
11 <LINK REL="Next" HREF="000069.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices Coding] Services 5.0 alpha 9 released</H1>
15 <B>Andrew Church</B>
16 <A HREF="mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20Services%205.0%20alpha%209%20released&In-Reply-To="
17 TITLE="[IRCServices Coding] Services 5.0 alpha 9 released">achurch at achurch.org
18 </A><BR>
19 <I>Wed Dec 26 03:08:51 PST 2001</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="000071.html">[IRCServices Coding] More bugs... :)
22</A></li>
23 <LI>Next message: <A HREF="000069.html">[IRCServices Coding] Services 5.0 alpha 9 released
24</A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#68">[ date ]</a>
27 <a href="thread.html#68">[ thread ]</a>
28 <a href="subject.html#68">[ subject ]</a>
29 <a href="author.html#68">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33<!--beginarticle-->
34<PRE>&gt;<i>I was playing with the httpd/dbaccess/xml-export module, and IE6's
35</I>&gt;<i>usually annoying XML syntax checking pointed something out. Where
36</I>&gt;<i>there's an ampersand in a last_quit field, it replaces it with
37</I>&gt;<i>&quot;&amp;amp-&quot; as opposed to the correct &quot;&amp;amp;&quot;, which causes IE to choke
38</I>&gt;:<i>). The context is as follows:
39</I>&gt;<i>
40</I>&gt;<i>&lt;nickinfo&gt;
41</I>&gt;<i>&lt;nick&gt;[nick]&lt;/nick&gt;
42</I>&gt;<i>...
43</I>&gt;<i>&lt;last_quit&gt;Quit: Peace &amp;amp- Protection 4.06&lt;/last_quit&gt;
44</I>&gt;<i>...
45</I>&gt;<i>&lt;nickinfo&gt;
46</I>
47 Okay, that was a stupid one... an off-by-one error in a memcpy() size
48argument. Fixed, thanks; the patch is as follows:
49
50---------------------------------------------------------------------------
51--- modules/misc/xml-export.c 19 Dec 2001 16:35:13 -0000 2.2
52+++ modules/misc/xml-export.c 25 Dec 2001 18:12:42 -0000 2.3
53@@ -94,7 +94,7 @@
54 d += 4;
55 break;
56 case '&amp;':
57- memcpy(d, &quot;&amp;amp;&quot;, 4);
58+ memcpy(d, &quot;&amp;amp;&quot;, 5);
59 d += 5;
60 break;
61 default:
62---------------------------------------------------------------------------
63
64&gt;<i>Also, it seems to pad every &lt;supass&gt; or &lt;pass&gt; field with lots of
65</I>&gt;<i>&quot;&amp;#0;&quot; null chars:
66</I>&gt;<i>&lt;supass&gt;mysupass&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;
67</I>&gt;<i>#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&lt;/supass&gt;
68</I>&gt;<i>&lt;pass&gt;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0
69</I>&gt;<i>;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&amp;#0;&lt;/pa
70</I>&gt;<i>ss&gt;
71</I>
72 This is because the export-xml module can't know that the encryption
73module (if one is in use) uses a null character as a string terminator.
74In point of fact, the MD5 encryption module stores the passwords as 16 raw
75bytes rather than 32 hex characters, so null characters can very possibly
76appear in the middle of a password. Thus, passwords are stored as raw
77buffers of data (properly XML-encoded).
78
79&gt;<i>Also, on my #chat channel on the v4 installation, Voice is set to
80</I>&gt;<i>level 0, so everyone is voiced when they join. However, when my AOPs
81</I>&gt;<i>join #chat on the v5 net, they get set +hq, and normal users don't
82</I>&gt;<i>get anything, which is rather odd (possibly to do with me not running
83</I>&gt;<i>the xOP module or something...). I'm continuing to investigate this
84</I>&gt;<i>one.
85</I>
86 You should probably look into what check_access_cumode()
87(modules/chanserv/access.c) is doing; that part of the code has been
88thoroughly redone and gotten almost no testing. I'm not sure what would
89cause the autovoice level to get set to 0.
90
91 --Andrew Church
92 <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">achurch at achurch.org</A>
93 <A HREF="http://achurch.org/">http://achurch.org/</A>
94
95</PRE>
96
97<!--endarticle-->
98 <HR>
99 <P><UL>
100 <!--threads-->
101 <LI>Previous message: <A HREF="000071.html">[IRCServices Coding] More bugs... :)
102</A></li>
103 <LI>Next message: <A HREF="000069.html">[IRCServices Coding] Services 5.0 alpha 9 released
104</A></li>
105 <LI> <B>Messages sorted by:</B>
106 <a href="date.html#68">[ date ]</a>
107 <a href="thread.html#68">[ thread ]</a>
108 <a href="subject.html#68">[ subject ]</a>
109 <a href="author.html#68">[ author ]</a>
110 </LI>
111 </UL>
112
113</body></html>