Skip to content

Commit

Permalink
Urldecode the parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sanduhrs committed Feb 8, 2022
1 parent 55fbe76 commit e46793a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion phpstorm-url-handler
Expand Up @@ -7,7 +7,9 @@
# @license GPL
# @author Stefan Auditor <stefan@auditor.email>

arg=${1}
function urldecode() { : "${*//+/ }"; echo -e "${_//%/\\x}"; }

arg=$(urldecode "${1}")
pattern=".*file(:\/\/|\=)(.*)&line=(.*)"

# Get the file path.
Expand Down

0 comments on commit e46793a

Please sign in to comment.