From: Jens K. <je...@su...> - 2006-07-20 23:36:43
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Look at these two headers:<br> <tt>X-Face: 'HVkL'h@jz#Ba_9R&5w3^'$Z>Zjf;<br> l)'"$)TCfZ/UGu$tA@HwGXl2z"_@V0qpT[o)U'1q9WxgclT^l:6(@`ry-a5jjicT#U3Yn#<br> IGQ,sb=[g/?%ulNyTYhsY}KaqyNjI'8ZPC}]vI,+{Uf,<br> +US4tS^cVg|2qm9B[vlVyi^`'4gAnBC]FY1:)Cxbs\Cr<+g@21L,fu]tceV1Yn;)QE,<br> ;+=cG#}$z^_@a<tu]<}@zuKM~BL_PPG*Vluk;EJfs1k3&{<br> Face:<br> iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEX/39LLn5VYR0QpJy<br> mDZV8SExMFBwZsSkHdAAACKklEQVQ4jVWUXa7cIAyFyQ6CxAI6BvX9hiTPA2UFpbCARrD/<br> JfTYkMwt0mQiPvxzbBNFRBt+1m/++wpqvhyldF6lyl/flcWuxWlstNru/f5HALs5sFue/f<br> 5bALGv3srx7E+w4YHjBY86jSbwmR1WoFxq/YA7sSx2/wGSp9h5AX8BDgSQlPECof5okHQp<br> KMvsBBlvlFIi8mWCmo/sX3quRJZrcKkT4MxuVVgTHGJxcinyezFJrwIQtE6L3r9w2KSA/c<br> h5DVec3Y9FTq/aRPTAD4teGcBH0mpJlMgPcKAH/b2kEFNQSxSp50gXrt7K4OyLgR9BxFUF<br> UBwcwKLSm/24EhErx6CIAWCASKUJgMaFSzKBdO0tugdwKdpZq96DGmtJEXWMto7qTqBvMG<br> OwnBefZmAipenKshwGJgzgPuCqX8jUICudHNF0Zb296r4qzXFMdE+6vzZ79V2jiqw+0jfg<br> CwDrVty/B2AsatuC9NskWLj0AT1jFkzQBk3yzjzg7NkhhEagZCmIRWOAOdk5hoE2ciHSz2<br> mBeUWQdZQwukjnBCgXBo41oo3cjjpc4S4hJIIgBDujow8L7qEA1gFgb4B0W3ZhXQVg3nsf<br> ZYdJaf6lhgWN+8EAlyMXTKniqYskBuzqKJiXkrnAUit/fwDK5XeMONfRmBm670HxNQmJK4<br> UawsBCXW8vzaCtrAFXgD81VkbaAdR+rOM2GQwo7uHZ6oVx5UP3PUvcDUNBw+8/VPf66kdP<br> 4S8AAAAASUVORK5CYII=</tt><br> <br> The obvious thing with the first header is that apparently SM breaks the line at commas? I don't necessarily think it's a problem, but it sure looks odd :)<br> <br> The problem with the second line however is a bit more worrisome. For some bizarre reason SM inserts a line break between the header name and the actual header content. As near as I can tell it's got to do with the length of the header. The code that produces these headers is simple:<br> <br> <tt>function xface_compose_send_addheader(&$argv) {<br> $pref_xface = trim(getPref($data_dir,$username,'plugin_xface_xfaceicon', ''));<br> $pref_face = trim(getPref($data_dir,$username,'plugin_xface_faceicon', ''));<br> <br> $message[0]=&$argv[0];<br> $message[1]=&$argv[1];<br> if(strlen($pref_xface)>0) $message[1]->rfc822_header->more_headers["X-Face"] = $pref_xface;<br> if(strlen($pref_face)>0) $message[1]->rfc822_header->more_headers["Face"] = $pref_face;<br> <br> return($message);<br> }</tt><br> <br> If I look at the config file (where both strings are stored), they both look perfectly fine. The headers BOTH still seem to work in every client I tried, so it either doesn't violate RFC or the clients are rather tolerant :) Anyway... just thought I'd point it out.<br> <br> J<br> </body> </html> |