Skip to content

Commit

Permalink
Use backticks.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 30, 2004
1 parent 13cdd12 commit c1e931c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vendor/index.php
Expand Up @@ -86,8 +86,8 @@ function update_vendor_login($loginname, $pw, $allowreplace)
} // if

$cmd = escapeshellcmd("htpasswd -b -n $loginname $pw");
$cryptedpw = @system($cmd);
if ($cryptedpw == false)
$cryptedpw = `$cmd`;
if (empty($cryptedpw))
{
write_error("Can't crypt password");
return;
Expand Down

0 comments on commit c1e931c

Please sign in to comment.