@@ -242,14 +242,14 @@ local function containsTraversalSegment(value)
242242end
243243
244244local function findUnsupportedControlCharacter (value )
245- local controlCharStart = nil
245+ local firstControlCharPos = nil
246246 for _ , char in ipairs ({ " \r " , " \n " , string.char (0 ) }) do
247247 local position = string.find (value , char , 1 , true )
248- if position and (controlCharStart == nil or position < controlCharStart ) then
249- controlCharStart = position
248+ if position and (firstControlCharPos == nil or position < firstControlCharPos ) then
249+ firstControlCharPos = position
250250 end
251251 end
252- return controlCharStart
252+ return firstControlCharPos
253253end
254254
255255local function shellQuote (value )
@@ -599,10 +599,10 @@ local function ensureWindowsUvBuildPip(path)
599599 return
600600 end
601601
602- local bundledPath = path .. " \\ Lib\\ ensurepip\\ _bundled"
602+ local windowsBundledPath = path .. " \\ Lib\\ ensurepip\\ _bundled"
603603 command = powerShellPythonCommand (pythonExe , {
604604 " -E" , " -s" , " -m" , " pip" , " install" , " --force-reinstall" , " --no-index" ,
605- " --find-links" , bundledPath , " pip"
605+ " --find-links" , windowsBundledPath , " pip"
606606 })
607607 exitCode = os.execute (command )
608608 if not commandSucceeded (exitCode ) then
0 commit comments