Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
6.x-1.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Oct 2010 at 00:56 UTC
Updated:
1 Nov 2010 at 17:40 UTC
Hi,
When running drupal under Quercus, I get the following error message:
warning: com.caucho.quercus.QuercusException: ' ' is an unknown regexp flag in /[^a-zA-Z0-9\/]+/ [preg_replace] in C:\resin-4.0.10\webapps\ROOT\sites\all\modules\ctools\includes\cleanstring.inc on line 136.
I believe the following one-line change is required to fix it. It is just removal of an extraneous space from the end of the pattern.
file:ctools/includes/cleanstring.inc, line 135 (ctools version 1.7)
if ($settings['reduce ascii']) {
- $pattern = '/[^a-zA-Z0-9\/]+/ ';
+ $pattern = '/[^a-zA-Z0-9\/]+/';
$output = preg_replace($pattern, $settings['separator'], $output);
}
Comments
Comment #1
longhairedgit commentedComment #2
merlinofchaos commentedFixed in D6 and 7.