File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -466,9 +466,15 @@ impl<'event> GitConfig<'event> {
466
466
. map ( |v| values:: String :: from ( v) . value )
467
467
}
468
468
469
- /// Like [`value()`][GitConfig::value()], but returning an `Option` if the paty wasn't found.
469
+ /// Like [`value()`][GitConfig::value()], but returning an `Option` if the path wasn't found.
470
470
///
471
- /// As strings perform no conversions, this will never fail.
471
+ /// Note that this path is not vetted and should only point to resources which can't be used
472
+ /// to pose a security risk.
473
+ ///
474
+ /// As paths perform no conversions, this will never fail.
475
+ // TODO: add `secure_path()` or similar to make use of our knowledge of the trust associated with each configuration
476
+ // file, maybe even remove the insecure version to force every caller to ask themselves if the resource can
477
+ // be used securely or not.
472
478
pub fn path (
473
479
& ' event self ,
474
480
section_name : & str ,
You can’t perform that action at this time.
0 commit comments