forked from Shinonome/dots-hyprland
[small bug fix] fixed thumbnail urlencode for file names with (,),* (#3042)
This commit is contained in:
@@ -36,7 +36,7 @@ urlencode() {
|
|||||||
for ((i=0; i<${#str}; i++)); do
|
for ((i=0; i<${#str}; i++)); do
|
||||||
c="${str:$i:1}"
|
c="${str:$i:1}"
|
||||||
case "$c" in
|
case "$c" in
|
||||||
[a-zA-Z0-9.~_-]|/) encoded+="$c" ;;
|
[a-zA-Z0-9.~_-]|/|'('|')'|'*') encoded+="$c" ;;
|
||||||
*) printf -v hex '%%%02X' "'${c}'"; encoded+="$hex" ;;
|
*) printf -v hex '%%%02X' "'${c}'"; encoded+="$hex" ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user