Go to the FreeLists Home Page Home Signup Help Login
 



[dokuwiki] || [Date Prev] [12-2005 Date Index] [Date Next] || [Thread Prev] [12-2005 Thread Index] [Thread Next]

[dokuwiki] Re: preg_match error when using ldap and csv

  • From: Chris Smith <chris@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 09 Dec 2005 01:13:02 +0000
Brian G wrote:
Hello there, I'm running Release 2005-09-22e and using ldap authentication and the CSV plugin.

When users are logged in, they don't have any problems viewing/editing pages. But when an anonymous user reads a page, they keep getting an "Unknown modifier" in the auth.php section. I've tried to look at it myself, but I'm not very good at php and even less good at regular expressions.

*Warning*: Unknown modifier 'r' in */usr/www/html/unixwiki/inc/auth.php* on line *259

*Here is the actual expression its trying to match (I just did an echo to get this string):

/^/usr/www/html/unixwiki/data/media/wiki/iuscreport.csv\s+(@ALL)\s+/

and here is my acl file

* @ALL 1
* @Domain_Users 8
*
*If I remove the CSV file from the page the error goes away, so I guess its more of a problem with the plugin, but I wanted to check here first to see if the regular expression could be changed to handle whatever is causing the hickup. I really like the CSV plugin.
*
*
Wrap the $id on that line in a preg_quote function call, e.g.

$id ... becomes ... preg_quote($id,'/')

The rest of the line remains unchanged. The problem is already fixed in the dev code.

Cheers,

Chris


-- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist




[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.