Skip to content
Permalink
Browse files

Support Dollar Signs in Passwords

  • Loading branch information
Cat5TV committed Nov 22, 2019
1 parent 185c05b commit fa75ae34cc171deb5cffe0636ed8bf2c2d2a0645
Showing with 8 additions and 1 deletion.
  1. +8 −1 data/reconcile-resource.sh
@@ -24,7 +24,14 @@
$import = new stdClass();
echo ' Importing: ' . $line . PHP_EOL;
$tmp = explode('$',$line);
$tmp[3] = explode('=',$tmp[2]);
// Check if user actually has a dollar sign in their password and append if yes
$append='';
$check=3; // starting key is 3 for the check
while (isset($tmp[$check])) {
$append .= $tmp[$check];
$check++; // it's dynamic, in case they have many $$ in their Pa$$word.
}
$tmp[3] = explode('=',$tmp[2] . $append);
$import->variable = $tmp[1];
$import->value = $tmp[3][1];
foreach ($data->dest as $line=>$destdata) {

0 comments on commit fa75ae3

Please sign in to comment.
You can’t perform that action at this time.