Package: moin
Severity: minor
Tags: patch

  Hi,

    When using moin with twikidraw, if drawing is edited in a system
with CR+LF line terminator, drawing gets corrupted due to CRs, so they
need to be stripped from input. Please apply the following patch:

--- usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py.orig  
2005-03-03 15:16:42.000000000 -0300
+++ usr/lib/python2.3/site-packages/MoinMoin/action/AttachFile.py       
2005-03-03 15:17:22.000000000 -0300
@@ -488,6 +488,7 @@
 
     if ext == '.draw':
         _addLogEntry(request, 'ATTDRW', pagename, basename + ext)
+        filecontent = filecontent.replace("\r","")
 
     savepath = os.path.join(getAttachDir(pagename), basename + ext)
     if ext == '.map' and filecontent.strip()=='':


    Thanks,
      Pedro

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i586)
Kernel: Linux 2.6.8-2-386
Locale: LANG=pt_BR, LC_CTYPE=pt_BR (charmap=ISO-8859-1)

Versions of packages moin depends on:
ii  python                        2.3.4-5    An interactive high-level object-o


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to