Hi,

>    I had downloaded the change_passwd 
>    plugin (http://squirrelmail.org/plugin_view.php?id=117)
>    about a month ago and was using it without problems.
>
>    This afternoon, a user reported that he was seeing this message
>    when he changed his password:
>    "The chpasswd program was not found!"
>
>    After a lot of trials we found that this error occured whenever he used
>    the following combination in his password: "&*("

I was looking at the source code and I figured the reason it
wasn't working was because the call to the chpaswd program ran like this:

    chpasswd user oldpassword &\*\(

To the linux server, that looks like a call to chpasswd to run in the background.

When the new password is "&*(", a call to quotmeta converts it to
    &\*\(

[That is all the meta characters are prefixed with a \]


All I had to do was use str_replace "&" by "\&" and it works fine!

Regards,
Manu



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to