HomePhorge

Restrict the absolute path regex to the start of the string
71ba92cd09b3Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Restrict the absolute path regex to the start of the string

Previously the regex used to detect Windows absolute paths only
applied the caret to the first part of the regex (the part that
matched drive letters). But the parts used to detect UNC paths
(\\server\name) and prefixed paths (\\?\C:\foo) were matching any part
of the string. And since / and \ are valid path separators on Windows,
URIs like puppet://foo/bar (used as file sources) were incorrectly
thought to be absolute paths.

This commit ensures the absolute path regex is restricted to the start
of the string for all cases.

Details

Provenance
Josh Cooper <josh@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU1edf767dccc4: Move group management into providers
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Cooper <josh@puppetlabs.com> committed rPU71ba92cd09b3: Restrict the absolute path regex to the start of the string (authored by Josh Cooper <josh@puppetlabs.com>).Sep 27 2011, 8:20 PM