Your message dated Sun, 21 Mar 2010 15:32:47 +0000
with message-id <[email protected]>
and subject line Bug#572395: fixed in docbookwiki 0.9.1cvs-14
has caused the Debian Bug report #572395,
regarding docbookwiki: Requires magic_quotes_gpc Off
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
572395: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=572395
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: docbookwiki
Version: 0.9.1cvs-12
Severity: normal

You really need php magic_quotes_gpc turned *off* for docbookwiki,
as docbookwiki cannot strip the additional backslashes by itself.
When magic quotes are on, editing may introduce backslashes
into the content (especially in DocBook format, where usually you
have a lot of " characters that will get converted to \" by magic quotes).
This makes content invalid, usually making invalid XML that cannot
be processed anymore.

Typical result is seeing errors like this when pressing "save"
after editing in the DocBook format:

--------------------------------------------
<h1>Transformation Error</h1>
<xmp>/tmp/dbwiki_6UM0Fq:7: parser error : AttValue: " or ' expected
  <para><comment>0</comment> <ulink url=\"http://www.wroclaw.pl/m70276/\"/> </pa
                                        ^
.......................
unable to parse /tmp/dbwiki_6UM0Fq
-------------------------------------------------

This bites you especially since the default php.ini (/etc/php5/apache2/php.ini,
php5 + apache2 using apache module) has magic_quotes_gpc turned On.

I added these lines to my /etc/apache2/conf.d/docbookwiki.conf and
they nicely fix the problem:

----------------------
<DirectoryMatch /usr/share/docbookwiki/>

  # With magic quotes on, editing may introduce backslashes
  # into the content (especially in DocBook format, where usually you
  # have a lot of " characters that will get converted to \" by magic quotes).
  # This makes content invalid, usually making invalid XML that cannot
  # be processed anymore.

  <IfModule mod_php5.c>
  php_flag magic_quotes_gpc Off
  </IfModule>
</DirectoryMatch>
----------------------

(Probably the same clause should be added for php4, under <IfModule mod_php4.c>.
Or maybe <IfModule mod_php5.c> can be removed entirely, but this
would make the config files invalid when php module is turned off
(docbookwiki doesn't work without php anyway, but still...).)

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages docbookwiki depends on:
ii  adduser                  3.112           add and remove users and groups
ii  apache2-mpm-prefork [htt 2.2.14-4        Apache HTTP Server - traditional n
ii  dblatex                  0.2.12-2        Produces DVI, PostScript, PDF docu
ii  debconf [debconf-2.0]    1.5.28          Debian configuration management sy
ii  docbook-dsssl            1.79-6          modular DocBook DSSSL stylesheets,
ii  docbook-utils            0.6.14-1.1      Convert Docbook files to other for
ii  docbook-xml              4.5-7           standard XML documentation system 
ii  docbook-xsl              1.75.2+dfsg-3   stylesheets for processing DocBook
ii  gawk                     1:3.1.6.dfsg-4  GNU awk, a pattern scanning and pr
ii  jadetex                  3.13-10         generator of printable output from
ii  libapache2-mod-php5      5.2.11.dfsg.1-2 server-side, HTML-embedded scripti
ii  libxml2-utils            2.7.6.dfsg-1    XML utilities
ii  mysql-server             5.1.41-3        MySQL database server (metapackage
ii  mysql-server-5.1 [mysql- 5.1.41-3        MySQL database server binaries
ii  openssl                  0.9.8k-7        Secure Socket Layer (SSL) binary a
ii  php5-cli                 5.2.11.dfsg.1-2 command-line interpreter for the p
ii  php5-mysql               5.2.11.dfsg.1-2 MySQL module for php5
ii  subversion               1.6.3dfsg-1     Advanced version control system
ii  sudo                     1.7.2p1-1       Provide limited super user privile
ii  svn-load                 1.2-1           An enhanced import facility for Su
ii  swish-e                  2.4.7-1         Simple Web Indexing System for Hum
ii  xmltex                   1.9.debian.1-2  TeX package for processing XML fil
ii  xmlto                    0.0.23-2        XML-to-any converter
ii  xsltproc                 1.1.26-1        XSLT command line processor

docbookwiki recommends no packages.

docbookwiki suggests no packages.

-- debconf information:
* docbookwiki/reconfigure_webserver: apache2
* docbookwiki/restart_webserver: true
* docbookwiki/generate_downloads: true
* docbookwiki/purge_books: false

-- debsums errors found:
debsums: changed file /usr/share/docbookwiki/content/downloads/dblatex.sh (from 
docbookwiki package)
debsums: changed file /usr/share/docbookwiki/web_app/append/append.html (from 
docbookwiki package)
debsums: changed file 
/usr/share/docbookwiki/web_app/boxes/webnotes/edit/help.html (from docbookwiki 
package)
debsums: changed file /usr/share/docbookwiki/search/search.sh (from docbookwiki 
package)
debsums: changed file /usr/share/docbookwiki/search/make_index.sh (from 
docbookwiki package)
debsums: changed file /usr/share/docbookwiki/templates/main/footer.html (from 
docbookwiki package)
debsums: changed file /usr/share/docbookwiki/templates/main/header.html (from 
docbookwiki package)
debsums: changed file /usr/share/docbookwiki/templates/main/main.html (from 
docbookwiki package)
debsums: changed file /usr/share/docbookwiki/templates/docbook/langs/langs.html 
(from docbookwiki package)
debsums: changed file /usr/share/docbookwiki/templates/docbook/docbook.css 
(from docbookwiki package)
debsums: changed file /usr/share/docbookwiki/css/view/contents.css (from 
docbookwiki package)
debsums: changed file /usr/share/docbookwiki/css/main.css (from docbookwiki 
package)
debsums: changed file /usr/share/docbookwiki/css/view.css (from docbookwiki 
package)
debsums: changed file 
/usr/share/docbookwiki/xsl_transform/cache/content_html/section.xsl (from 
docbookwiki package)



--- End Message ---
--- Begin Message ---
Source: docbookwiki
Source-Version: 0.9.1cvs-14

We believe that the bug you reported is fixed in the latest version of
docbookwiki, which is due to be installed in the Debian FTP archive:

docbookwiki_0.9.1cvs-14.diff.gz
  to non-free/d/docbookwiki/docbookwiki_0.9.1cvs-14.diff.gz
docbookwiki_0.9.1cvs-14.dsc
  to non-free/d/docbookwiki/docbookwiki_0.9.1cvs-14.dsc
docbookwiki_0.9.1cvs-14_all.deb
  to non-free/d/docbookwiki/docbookwiki_0.9.1cvs-14_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jeremy Malcolm <[email protected]> (supplier of updated docbookwiki package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 21 Mar 2010 21:43:49 +0800
Source: docbookwiki
Binary: docbookwiki
Architecture: source all
Version: 0.9.1cvs-14
Distribution: unstable
Urgency: low
Maintainer: Jeremy Malcolm <[email protected]>
Changed-By: Jeremy Malcolm <[email protected]>
Description: 
 docbookwiki - a Web application to display and edit DocBook documents online
Closes: 572394 572395 573134
Changes: 
 docbookwiki (0.9.1cvs-14) unstable; urgency=low
 .
   * When notes need not be approved, hide approval warnings for visitors
     (Closes: #572394)
   * Set PHP variable magic_quotes_gpc off (Closes: #572395)
   * Removes crontab on purge (Closes: #573134)
Checksums-Sha1: 
 20ad7b76be1026550bb64fa3c7a98b9fffc6ea2f 1028 docbookwiki_0.9.1cvs-14.dsc
 830c0e04dfd29e36f65593f0586d9330a6308d90 18857 docbookwiki_0.9.1cvs-14.diff.gz
 a1ffeb3c26bb6ca1f6495163a6542bfdcb6232fe 912478 docbookwiki_0.9.1cvs-14_all.deb
Checksums-Sha256: 
 4ca4945987771e82a43c02e0c32ace1023df3fb305e71e5d4f3d1b3730964804 1028 
docbookwiki_0.9.1cvs-14.dsc
 1904ef123048c5157fe43c5b277f7da1d989210b5fb65975e8fbe4359903d666 18857 
docbookwiki_0.9.1cvs-14.diff.gz
 e4e0942033e8e9c2e751997f951ecb9115f36de14b22de813c744a1f684e59c8 912478 
docbookwiki_0.9.1cvs-14_all.deb
Files: 
 a7ce44b2f56579db08e9b8c6c66654a7 1028 non-free/web extra 
docbookwiki_0.9.1cvs-14.dsc
 0ea12b741dd41497d09d6c3e95d04e9a 18857 non-free/web extra 
docbookwiki_0.9.1cvs-14.diff.gz
 5bb5a8042d015ae2229d5a5d873afb62 912478 non-free/web extra 
docbookwiki_0.9.1cvs-14_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFLpiXf9nWq4tKrIiARAlPIAKDcK92gUEpm6b7n7ZyYG/31JpIamwCg/NCg
ktH4FHvI449+9Q/SWK1eLvw=
=tJl3
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to