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>
This commit is contained in:
parent
66f9fca58f
commit
2cbd9a2eb1
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=travelmate
|
PKG_NAME:=travelmate
|
||||||
PKG_VERSION:=2.0.7
|
PKG_VERSION:=2.0.7
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
PKG_LICENSE:=GPL-3.0-or-later
|
PKG_LICENSE:=GPL-3.0-or-later
|
||||||
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
|
||||||
|
|
||||||
|
|
|
@ -491,7 +491,7 @@ f_net() {
|
||||||
result="net cp '${json_cp}'"
|
result="net cp '${json_cp}'"
|
||||||
else
|
else
|
||||||
if [ "${json_rc}" = "200" ] || [ "${json_rc}" = "204" ]; then
|
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
|
if [ -n "${html_cp}" ]; then
|
||||||
result="net cp '${html_cp}'"
|
result="net cp '${html_cp}'"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue