Skip to content
Snippets Groups Projects
Commit b968359d authored by Niels Möller's avatar Niels Möller
Browse files

Bugfixes. Removed debug output.

Rev: lib/modules/Tools.pmod/PEM.pmod:1.2
parent 8ec681f3
No related branches found
No related tags found
No related merge requests found
......@@ -111,8 +111,10 @@ class rfc934 {
initial_text = current;
else
{
#ifdef PEM_DEBUG
werror(sprintf("boundary='%s'\ncurrent='%s'\n",
boundary, current));
#endif
encapsulated
+= ({ encapsulated_message()->init(boundary, current) });
}
......@@ -169,7 +171,7 @@ class pem_msg
object msg = rfc934()->init(s);
parts = ([ ]);
parts->initial_text = msg->initial_text;
initial_text = msg->initial_text;
for(int i = 0; i<sizeof(msg->encapsulated); i += 2 )
{
......@@ -196,7 +198,7 @@ class pem_msg
{
/* This was the last section. Use the final_boundary. */
res = end_pem_re->split(msg->get_final_boundary());
parts->final_text = msg->final_text;
final_text = msg->final_text;
}
if (!res || (res[0] != name))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment