Skip to content

Commit

Permalink
Escape trailing slash in install directory location so the closing qu…
Browse files Browse the repository at this point in the history
…ote is not escaped

Fixes containers#11416 [NO NEW TESTS NEEDED]

Signed-off-by: Jason Greene <[email protected]>
  • Loading branch information
n1hility authored and mheon committed Dec 6, 2021
1 parent 0657204 commit a21c5d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/msi/podman.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
</Directory>

<Property Id="setx" Value="setx.exe"/>
<CustomAction Id="ChangePath" ExeCommand="PATH &quot;%PATH%;[INSTALLDIR]&quot;" Property="setx" Execute="deferred" Impersonate="yes" Return="check"/>
<!-- Directory table entries have a trailing slash, so an extra backslash is needed to prevent escaping the quote -->
<CustomAction Id="ChangePath" ExeCommand="PATH &quot;%PATH%;[INSTALLDIR]\&quot;" Property="setx" Execute="deferred" Impersonate="yes" Return="check"/>

<Feature Id="Complete" Level="1">
<ComponentRef Id="INSTALLDIR_Component"/>
Expand Down

0 comments on commit a21c5d1

Please sign in to comment.