WordPress password quotes bug
Doh, it’s only the third day i use WordPress and i’ve already filled a bug report.
Today, i created a user ‘alex’ so that i could post with this user, and not ‘admin’ to the blog. And i’ve generated a password and tried to change to it – and boom, error:
ERROR: Passwords may not contain the character “\”.
What the hell? I didn’t use \ in the password! A quick debuging showed that password i posted had been quoted, so if i used abc” it quoted it as abc\” – that’s because i have magic_quotes_gpc turned on. I’ve added a quick stripslashes() on password if magic_quotes_gpc is on and it started to work.
WordPress ticket can be found here http://trac.wordpress.org/ticket/7197
I don’t know WordPress yet, so maybe the patch isn’t correct. Use it on your own risk