Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: longhairedgit commentedComment #2
merlinofchaos CreditAttribution: merlinofchaos commentedFixed in D6 and 7.