remove restriction to php

This commit is contained in:
josch 2015-03-28 10:43:05 +01:00
parent 26dc323e75
commit 6533744ec4
2 changed files with 3 additions and 3 deletions

View file

@ -32,5 +32,5 @@ for f in *; do
mv ${f} ${f}.${ext}
# now replace & and ? in f
f=`echo "$f" | sed 's/?/%3F/g; s/&/%26/g'`
perl -pi -e "s/\\Q${f}\\E([#\"])/${f}.${ext}\1/g" *php*
perl -pi -e "s/\\Q${f}\\E([#\"])/${f}.${ext}\1/g" *
done

View file

@ -16,8 +16,8 @@ for filename in sys.argv[1:]:
s = s.replace("&", "%26")
return s
data = re.sub(r'href="[^"]+\.php[^"]*"', aux, data)
data = re.sub(r'src="[^"]+\.php[^"]*"', aux, data)
data = re.sub(r'href="[^"]+"', aux, data)
data = re.sub(r'src="[^"]+"', aux, data)
with open(filename, "w") as f:
f.write(data)