validate $EXEPATH as well
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5107 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
c3e4937efe
commit
72c2e4c211
3 changed files with 9 additions and 9 deletions
|
@ -674,13 +674,13 @@ char * NSISCALL GetNSISString(char *outbuf, int strtab)
|
|||
}
|
||||
else if (nVarIdx == NS_VAR_CODE)
|
||||
{
|
||||
if (nData == 27) // HWNDPARENT
|
||||
if (nData == 28) // HWNDPARENT
|
||||
myitoa(out, (unsigned int) g_hwnd);
|
||||
else
|
||||
mystrcpy(out, g_usrvars[nData]);
|
||||
// validate the directory name
|
||||
if ((unsigned int)(nData - 21) < 6) {
|
||||
// validate paths for $INSTDIR, $OUTDIR, $EXEDIR, $LANGUAGE, $TEMP and $PLUGINSDIR
|
||||
if ((unsigned int)(nData - 21) < 7) {
|
||||
// validate paths for $INSTDIR, $OUTDIR, $EXEDIR, $LANGUAGE, $TEMP, $PLUGINSDIR and $EXEPATH
|
||||
// $LANGUAGE is just a number anyway...
|
||||
validate_filename(out);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue