Skip to content

Commit d58b9ff

Browse files
committed
Fixed: __WinHttpAttribVal could return wrong data.
1 parent beec892 commit d58b9ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WinHttp.au3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2185,7 +2185,7 @@ Func __WinHttpFormAttrib(ByRef $aAttrib, $i, $sElement)
21852185
EndFunc
21862186

21872187
Func __WinHttpAttribVal($sIn, $sAttrib)
2188-
Local $aArray = StringRegExp($sIn, '(?i).*?(\A| )\b' & $sAttrib & '\h*=(\h*"(.*?)"|' & "\h*'(.*?)'|" & '\h*(.*?)(?: |\Z))', 3) ; e.g. id="abc" or id='abc' or id=abc
2188+
Local $aArray = StringRegExp($sIn, '(?i).*?(\A| )\b' & $sAttrib & '\h*=(\h*"(.*?)"|' & "\h*'(.*?)'|" & '\h*(.*?)(?: |\Z))', 1) ; e.g. id="abc" or id='abc' or id=abc
21892189
If @error Then Return ""
21902190
Return $aArray[UBound($aArray) - 1]
21912191
EndFunc

0 commit comments

Comments
 (0)