|
From: <tre...@us...> - 2006-05-05 00:48:27
|
Revision: 6 Author: trekkie_lugfl Date: 2006-05-04 17:48:23 -0700 (Thu, 04 May 2006) ViewCVS: http://svn.sourceforge.net/yawcs/?rev=6&view=rev Log Message: ----------- added support for multible attributes in apacheRewriteMap Modified Paths: -------------- mod_vhost_ldap_ng/trunk/mod_vhost_ldap_ng.c Modified: mod_vhost_ldap_ng/trunk/mod_vhost_ldap_ng.c =================================================================== --- mod_vhost_ldap_ng/trunk/mod_vhost_ldap_ng.c 2006-05-02 15:40:08 UTC (rev 5) +++ mod_vhost_ldap_ng/trunk/mod_vhost_ldap_ng.c 2006-05-05 00:48:23 UTC (rev 6) @@ -707,7 +707,16 @@ } } else if (strcasecmp (attributes2[i], "apacheRewriteMap") == 0) { - mod_vhost_ldap_ng_call_take2( r, mod_rewrite, mod_rewrite_cfg, "RewriteMap", vals[i] ); + char* toParse = (char*)vals[i]; + char* rule = NULL; + char* last = NULL; + while( rule = apr_strtok( toParse, ";", &last)) + { + if(!toParse) + rule++; + toParse = NULL; + mod_vhost_ldap_ng_call_take2( r, mod_rewrite, mod_rewrite_cfg, "RewriteMap", rule ); + } } else if (strcasecmp (attributes2[i], "apacheRewriteLock") == 0) { mod_vhost_ldap_ng_call_take1( r, mod_rewrite, mod_rewrite_cfg, "RewriteOptions", vals[i] ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |