Skip to content

Commit

Permalink
Allow smb.conf path values that are double-quoted; man smb.conf doesn…
Browse files Browse the repository at this point in the history
…’t say that is allowed or not, but it seems to work with Samba, so let’s follow, just in case.
  • Loading branch information
gboudreau committed Jan 22, 2014
1 parent f1861f6 commit f31a1b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ function parse_config() {
}
if (isset($share_name) && !isset($shares_options[$share_name]) && !array_contains($trash_share_names, $share_name)) { continue; }
if (isset($share_name) && preg_match('/^\s*path[ \t]*=[ \t]*(.+)$/i', $line, $regs)) {
$shares_options[$share_name]['landing_zone'] = '/' . trim($regs[1], '/');
$shares_options[$share_name]['landing_zone'] = '/' . trim($regs[1], '/"');
$shares_options[$share_name]['name'] = $share_name;
}
}
Expand Down

0 comments on commit f31a1b3

Please sign in to comment.