World4You Bugfix unable to parse paketnr

This commit is contained in:
Lorenz Stechauner 2020-12-20 20:17:05 +01:00
parent 44615c6fa2
commit 48b2a271cc
No known key found for this signature in database
GPG Key ID: C9691D623AFF3424

View File

@ -185,7 +185,8 @@ _get_paketnr() {
fi
TLD="$domain"
_debug domain "$domain"
RECORD=$(echo "$fqdn" | cut -c"1-$((${#fqdn} - ${#TLD} - 1))")
PAKETNR=$(echo "$form" | grep "data-textfilter=\" $domain " | _head_n 1 | sed 's/^.* \([0-9]*\) .*$/\1/')
PAKETNR=$(echo "$form" | grep "data-textfilter=\".* $domain " | _head_n 1 | sed 's/^.* \([0-9]*\) .*$/\1/')
return 0
}