<div dir="ltr">Will check thanks!</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 7, 2017 at 1:50 PM, Matt Graham <span dir="ltr"><<a href="mailto:mhgraham@crow202.org" target="_blank">mhgraham@crow202.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2017-03-06 20:38, Herminio Hernandez, Jr. wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Here is the string I am using 'UPDATE virtual_users SET<br>
password=ENCRYPT(%p,concat('$6<wbr>$',substring(sha(rand()),-16))<wbr>), WHERE<br>
email=%u LIMIT 1';<br>
<br>
However, now roundcube is crashing and I am seeing this error<br></span><span class="">
Parse error: syntax error, unexpected '$' in<br>
/var/www/roundcube/roundcubema<wbr>il-1.2.1/plugins/password/<wbr>config.inc.php<br>
<br></span><span class="">
Not sure what I am missing....<br>
</span></blockquote>
<br>
config.inc.php is a PHP file, and variables in PHP have a $ in front of them. I would guess that you have a line sort of like<br>
<br>
$rcmail_config['password_updat<wbr>e_query']="UPDATE virtual_users SET password= ENCRYPT(%p,concat('$6$', substring(sha(rand()),-16))), WHERE email=%u LIMIT 1";<br>
<br>
...which is syntactically invalid because $6 is not a valid variable name. The $ chars in the SQL need to be escaped with \ . Try replacing '$6$' with '\$6\$' .<div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
Crow202 Blog: <a href="http://crow202.org/wordpress" rel="noreferrer" target="_blank">http://crow202.org/wordpress</a><br>
There is no Darkness in Eternity<br>
But only Light too dim for us to see.<br>
------------------------------<wbr>---------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.or<wbr>g</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mail<wbr>man/listinfo/plug-discuss</a></div></div></blockquote></div><br></div>