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)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to