Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Properly quote regex replacement string in path canonicalization #18

Merged
merged 1 commit into from
Apr 18, 2014

Conversation

gzm0
Copy link
Contributor

@gzm0 gzm0 commented Apr 18, 2014

Backslashes and dollars in regex replacement strings are interpreted as back references. The canonicalization chokes on paths like:

/base/path/something/Foo$.js

(because of the $). Quoting the replacement string mitigates this.

Backslashes and dollars in regex replacement strings are interpreted
as back references. The canonicalization chokes on paths like:

    /base/path/something/Foo$.js

(because of the `$`). Quoting the replacement string mitigates this.
@gkossakowski
Copy link
Contributor

LGTM

gkossakowski added a commit that referenced this pull request Apr 18, 2014
Properly quote regex replacement string in path canonicalization
@gkossakowski gkossakowski merged commit e200870 into scala:master Apr 18, 2014
@gzm0 gzm0 deleted the fix-log-path-replacement branch April 18, 2014 08:42
lrytz pushed a commit to lrytz/scala-partest that referenced this pull request May 9, 2018
Properly quote regex replacement string in path canonicalization
lrytz pushed a commit to lrytz/scala-partest that referenced this pull request May 9, 2018
Properly quote regex replacement string in path canonicalization
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants