Correction to the code for outputing root commands, so that the backquote and
backslash character are not escaped when not using sudo
This commit is contained in:
parent
970f2dc6e0
commit
cd668b9315
1 changed files with 2 additions and 2 deletions
|
@ -533,7 +533,7 @@ popd</xsl:text>
|
|||
select="substring-after($out-string,'make')"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="contains($out-string,'`')">
|
||||
<xsl:when test="contains($out-string,'`') and $sudo = 'y'">
|
||||
<xsl:call-template name="output-root">
|
||||
<xsl:with-param name="out-string"
|
||||
select="substring-before($out-string,'`')"/>
|
||||
|
@ -544,7 +544,7 @@ popd</xsl:text>
|
|||
select="substring-after($out-string,'`')"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="contains($out-string,'\')">
|
||||
<xsl:when test="contains($out-string,'\') and $sudo = 'y'">
|
||||
<xsl:call-template name="output-root">
|
||||
<xsl:with-param name="out-string"
|
||||
select="substring-before($out-string,'\')"/>
|
||||
|
|
Reference in a new issue