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

longhairedgit’s picture

Title: extra space in cleanstring regexp » extra space in ctools cleanstring regexp
merlinofchaos’s picture

Status: Active » Fixed

Fixed in D6 and 7.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.