Skip to content

Commit

Permalink
Drop "decodedUrl" #331
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmaehl committed Mar 3, 2024
1 parent fcf4f24 commit 7943d8f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Includes/_URLModifications.au3
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ EndFunc
; $dFlag - [Optional] WinAPI Function parameters
; Return values .: The URL unescaped string
; Author ........: mistersquirrle, rcmaehl
; Modified ......: 3/27/2023
; Modified ......: 2/8/2024
; Remarks .......: URL_DONT_UNESCAPE_EXTRA_INFO = 0x02000000
; URL_UNESCAPE_AS_UTF8 = 0x00040000 (Win 8+)
; URL_UNESCAPE_INPLACE = 0x00100000
Expand All @@ -458,6 +458,9 @@ Func _WinAPI_UrlUnescape($sUrl, $dFlags = 0x00040000)
Return SetError(@error, @extended, 0)
EndIf

If IsArray($aUrlUnescape) Then Return $aUrlUnescape[2]
If IsArray($aUrlUnescape) Then
If $aUrlUnescape[2] <> "decodedUrl" Then Return $sURL
Return $aUrlUnescape[2]
EndIf

EndFunc ;==>_WinAPI_UrlUnescape

0 comments on commit 7943d8f

Please sign in to comment.