<i>exec on Windows broken when '%' is used</i> status still Open with 3 other changes
by
.
D 2020-08-04T17:56:38.172
J icomment >\sIs\sthis\strying\sto\sfix\sa\svulnerability\sin\sWindows?\sOr\sTcl?\r\n\r\nBasically\sboth\s(or\srather\stcl's\sexec\sescape\sfor\swindows,\ssince\san\sescape\sis\salready\sthere,\sjust\sit\swas\swrong\s(vulnerable)\sbefore\smy\sfix\sin\s[21b0629c81]\sand\sit\sis\sstill\swrong\s(but\snot\svulnerable\sanymore)\snow.\r\n\r\nAnd\syes,\sI'll\stry\sto\srestore\sthe\sbackwards\scompatibility\swith\spreserving\sof\sthe\svulnerability\sfix\ssimultaneously\s(as\ssafe\sas\spossible).\r\n\r\nYour\ssentence\sfrom\sduplicate\sticket\s"On\sWindows,\sthe\sprogram\sshould\sreceive\sthe\sarguments\sas\sis,\sas\son\swindows,\sthe\sprograms\sparse\sthe\sarguments,\snot\sthe\sshell."\sis\sincorrect\sin\smy\sopinion,\sbecause\sin\ssuch\sa\scase\sthe\sescape\sand\squotation\sshould\sbe\scompletely\sremoved\s(belongs\sto\sthe\suser\stask)\sbut\sTcl\shas\sfrom\sscratch\stried\sto\sfollow\sposix\sexecv\ssemantic,\sso\shad\simplement\sescape/quotation\sfor\swindows\ssimulating\sthat\s(just\spartially,\sso\snot\senough\ssafe\sbecause\simpossibly).
J login sebres
J mimetype text/x-fossil-wiki
K 344b1a0c0f0e2fda1e4ad6520cbf5e0af35eb332
U sebres
Z 9f87cf04d5b0319676750b1766428af5