[eluser]BoyBlue[/eluser]
Ok...so, I figured out a solution.
There are actually 2 problems.
Problem #1:
% 0 9
Solution:
This was fixed when I changed to generating my URI Link in the email message to: site _ url(" login / verify_pwrc / $member_email / ")
Problem #2:
Error: The URI you submitted has disallowed characters
(I think this is being caused by settings in MAMP and/or Snow Leopard)
Solution:
I found some help at david michael thompson' s site:
Quote:Snow leopard upgraded my php dev environment to 5.3 from 5.2.6 And a few things have changed since then. Namely php bug #47229 “preg_quote should escape “-” (minus) as well” was fixed. (technically in 5.2.8) CodeIgniter checks uri for allowed characters to prevent some bad things. But the use preg_quote to convert the allowed list of character to something usable in a regular expression. Now the minus “-”, or I’d call it a dash (but I know there is a longer character for that) gets escaped in preg_quote with a backslash “\”. That cause the expression “a-z 0-9″ to be converted to “a\-z 0\-9″ which will not work in a regex.
Quote:How to fix it. (assuming codeigniter 1.7)
1) in codeigiter system/libraries open URI.php line 189 you’ll find
if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str)))
Change that to:
if ( ! preg_match("|^[".($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str)))
Note we removed the preg_quote(). Now in your system/application/config/config.php file look for line 126 (unless you’ve added a lot to you config will be around there somewhere)
Change the line
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_-';
to:
$config['permitted_uri_chars'] = 'a-z 0-9~%\.\:_\-';
we’re now preparing our allowed character string in the config file and skipping preg_quote. And that’s it. Now your uri should work
I hope this helps out someone else out there so they don't have as frustrating a day as I had trying to figure this out.
If there is a better solution(best practice) to this I would love to know what it is...
good luck,
BoyBlue