Bug#397419: dokuwiki: PHP preg_match() errors on page SAVE
November 07th, 2006 - 05:30 am ET by Matthew Exley | Report spam
Package: dokuwiki
Version: 0.0.20060309e-2
Severity: normal
Tags: patch
On my install, hitting SAVE for a page results in web-browser visible
WARNing messages:
Warning: preg_match() [function.preg-match]: Compilation failed:
repeated subpattern is too long at offset 14466 in
/usr/share/dokuwiki/inc/common.php on line 391
...
Warning: preg_match() [function.preg-match]: Compilation failed:
repeated subpattern is too long at offset 13400 in
/usr/share/dokuwiki/inc/common.php on line 391
Warning: Cannot modify header information - headers already sent by
(output started at /usr/share/dokuwiki/inc/common.php:391) in
/usr/share/dokuwiki/inc/actions.php on line 224
I have worked-around this with the following PATCH:
/usr/share/dokuwiki/inc/common.php.ORG 2006-11-07
09:45:42.000000000 +0000
+++ /usr/share/dokuwiki/inc/common.php 2006-11-07 09:46:11.000000000
+0000
@@ -388,7 +388,7 @@
if(empty($block)) continue;
$re[] = $block;
}
- if(preg_match('#('.join('|',$re).')#si',$TEXT, $match=array())) {
+ if(@preg_match('#('.join('|',$re).')#si',$TEXT, $match=array())) {
return true;
}
}
Debian Release: 4.0
APT prefers unstable
APT policy: (900, 'unstable'), (500, 'testing'), (200, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.30.2006110301
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) (ignored: LC_ALL set to en_GB)
Versions of packages dokuwiki depends on:
ii apache [httpd-cgi] 1.3.34-4 versatile, high-performance HTTP s
ii apache-ssl [httpd-cgi] 1.3.34-4 versatile, high-performance HTTP s
ii apache2 2.2.3-3 Next generation, scalable, extenda
ii apache2-mpm-prefork [httpd-cg 2.2.3-3 Traditional model for Apache HTTPD
ii debconf [debconf-2.0] 1.5.8 Debian configuration management sy
ii php4 4:4.4.4-5 server-side, HTML-embedded scripti
ii php5 5.1.6-6 server-side, HTML-embedded scripti
ii ucf 2.0016 Update Configuration File: preserv
Versions of packages dokuwiki recommends:
ii imagemagick 7:6.2.4.5.dfsg1-0.11 Image manipulation programs
ii php4-cli 4:4.4.4-5 command-line interpreter for the p
ii php4-gd 4:4.4.4-5 GD module for php4
ii php5-gd 5.1.6-6 GD module for php5
* dokuwiki/webservers: apache, apache2
* dokuwiki/system/purgepages: false
* dokuwiki/system/accessible: local network
* dokuwiki/system/documentroot: /dokuwiki
* dokuwiki/system/localnet: .exley.net
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Version: 0.0.20060309e-2
Severity: normal
Tags: patch
On my install, hitting SAVE for a page results in web-browser visible
WARNing messages:
Warning: preg_match() [function.preg-match]: Compilation failed:
repeated subpattern is too long at offset 14466 in
/usr/share/dokuwiki/inc/common.php on line 391
...
Warning: preg_match() [function.preg-match]: Compilation failed:
repeated subpattern is too long at offset 13400 in
/usr/share/dokuwiki/inc/common.php on line 391
Warning: Cannot modify header information - headers already sent by
(output started at /usr/share/dokuwiki/inc/common.php:391) in
/usr/share/dokuwiki/inc/actions.php on line 224
I have worked-around this with the following PATCH:
/usr/share/dokuwiki/inc/common.php.ORG 2006-11-07
09:45:42.000000000 +0000
+++ /usr/share/dokuwiki/inc/common.php 2006-11-07 09:46:11.000000000
+0000
@@ -388,7 +388,7 @@
if(empty($block)) continue;
$re[] = $block;
}
- if(preg_match('#('.join('|',$re).')#si',$TEXT, $match=array())) {
+ if(@preg_match('#('.join('|',$re).')#si',$TEXT, $match=array())) {
return true;
}
}
Debian Release: 4.0
APT prefers unstable
APT policy: (900, 'unstable'), (500, 'testing'), (200, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.30.2006110301
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) (ignored: LC_ALL set to en_GB)
Versions of packages dokuwiki depends on:
ii apache [httpd-cgi] 1.3.34-4 versatile, high-performance HTTP s
ii apache-ssl [httpd-cgi] 1.3.34-4 versatile, high-performance HTTP s
ii apache2 2.2.3-3 Next generation, scalable, extenda
ii apache2-mpm-prefork [httpd-cg 2.2.3-3 Traditional model for Apache HTTPD
ii debconf [debconf-2.0] 1.5.8 Debian configuration management sy
ii php4 4:4.4.4-5 server-side, HTML-embedded scripti
ii php5 5.1.6-6 server-side, HTML-embedded scripti
ii ucf 2.0016 Update Configuration File: preserv
Versions of packages dokuwiki recommends:
ii imagemagick 7:6.2.4.5.dfsg1-0.11 Image manipulation programs
ii php4-cli 4:4.4.4-5 command-line interpreter for the p
ii php4-gd 4:4.4.4-5 GD module for php4
ii php5-gd 5.1.6-6 GD module for php5
* dokuwiki/webservers: apache, apache2
* dokuwiki/system/purgepages: false
* dokuwiki/system/accessible: local network
* dokuwiki/system/documentroot: /dokuwiki
* dokuwiki/system/localnet: .exley.net
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Similar topics
Make your own search :
Tags
Create a new topic
Follow the discussion
1 reply
Make a reply
May 19th, 2013 - 8:01 PM ET
Join now


Replies