mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-23 22:42:14 +08:00
Fixed problem with obfuscate.sh finding strings too long
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5733 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
c96da0f968
commit
ff5d1ee2c1
@ -25,7 +25,7 @@
|
||||
# Nothing like a backup plan!
|
||||
#cp "$1" "$1".bak
|
||||
|
||||
for i in `grep -o '"mailto:.*@.*"' "$1" |sed -e 's|^"mailto:||' -e 's|"$||'`; do
|
||||
for i in `grep -o '"mailto:.*@.*"' "$1" |cut -d\" -f2|sed -e 's|^mailto:||' -e 's|"$||'`; do
|
||||
link=`echo $i | perl -pe 's/[^\n]/"\\\&#".ord($&)."\;"/ge'`
|
||||
plaintext=`echo $i | sed -e 's|@| AT |' -e 's|\.| D0T |g'`
|
||||
sed -i "s|mailto:$i|mailto:$link|" "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user