<div dir="ltr">Using the escape gave another error so I tried `$6$` and the page does not crash. However, I am not getting a syntax error, see below<div><br></div><div><div><3h4t13f1> DB Error: [1054] Unknown column '$6$' in 'field list'</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 7, 2017 at 1:52 PM, Herminio Hernandez, Jr. <span dir="ltr"><<a href="mailto:herminio.hernandezjr@gmail.com" target="_blank">herminio.hernandezjr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Will check thanks!</div><div class="HOEnZb"><div class="h5"><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>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>
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>
Parse error:  syntax error, unexpected '$' in<br>
/var/www/roundcube/roundcubema<wbr>il-1.2.1/plugins/password/conf<wbr>ig.inc.php<br>
<br></span><span>
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="m_-1088019657289354966HOEnZb"><div class="m_-1088019657289354966h5"><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>
</div></div></blockquote></div><br></div>