diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2021-10-01 16:17:00 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2021-10-04 10:37:51 +0300 |
commit | 2cbd9a2eb1a1658bed9d766e7397ff9ee39cd83b (patch) | |
tree | 844de58b29ed4a012b7cde4262943f3f7f26911e /net/travelmate/files/travelmate.sh | |
parent | 66f9fca58f896eb389765593729fa5f2095fc1b7 (diff) |
travelmate: support meta-refresh with single-quote
Currently `travelmate` only support `<meta` tag
if it contains `"`. This updates `travelmate.sh` to support
`'` as well.
```html
<meta...content='1; url=
```
Signed-off-by: Kamil Trzciński <ayufan@ayufan.eu>
Diffstat (limited to 'net/travelmate/files/travelmate.sh')
-rwxr-xr-x | net/travelmate/files/travelmate.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/travelmate/files/travelmate.sh b/net/travelmate/files/travelmate.sh index 6a0fe7f8a..e0a6b4977 100755 --- a/net/travelmate/files/travelmate.sh +++ b/net/travelmate/files/travelmate.sh @@ -491,7 +491,7 @@ f_net() { result="net cp '${json_cp}'" else if [ "${json_rc}" = "200" ] || [ "${json_rc}" = "204" ]; then - html_cp="$(printf "%s" "${html_raw}" | awk 'match(tolower($0),/^.*<meta[ \t]+http-equiv=["]*refresh.*[ \t;]url=/){print substr(tolower($0),RLENGTH+1)}' | awk 'BEGIN{FS="[:/]"}{printf "%s",$4;exit}')" + html_cp="$(printf "%s" "${html_raw}" | awk 'match(tolower($0),/^.*<meta[ \t]+http-equiv=['\''"]*refresh.*[ \t;]url=/){print substr(tolower($0),RLENGTH+1)}' | awk 'BEGIN{FS="[:/]"}{printf "%s",$4;exit}')" if [ -n "${html_cp}" ]; then result="net cp '${html_cp}'" else |