remove restriction to php
This commit is contained in:
parent
26dc323e75
commit
6533744ec4
2 changed files with 3 additions and 3 deletions
|
@ -32,5 +32,5 @@ for f in *; do
|
||||||
mv ${f} ${f}.${ext}
|
mv ${f} ${f}.${ext}
|
||||||
# now replace & and ? in f
|
# now replace & and ? in f
|
||||||
f=`echo "$f" | sed 's/?/%3F/g; s/&/%26/g'`
|
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
|
done
|
||||||
|
|
|
@ -16,8 +16,8 @@ for filename in sys.argv[1:]:
|
||||||
s = s.replace("&", "%26")
|
s = s.replace("&", "%26")
|
||||||
return s
|
return s
|
||||||
|
|
||||||
data = re.sub(r'href="[^"]+\.php[^"]*"', aux, data)
|
data = re.sub(r'href="[^"]+"', aux, data)
|
||||||
data = re.sub(r'src="[^"]+\.php[^"]*"', aux, data)
|
data = re.sub(r'src="[^"]+"', aux, data)
|
||||||
|
|
||||||
with open(filename, "w") as f:
|
with open(filename, "w") as f:
|
||||||
f.write(data)
|
f.write(data)
|
||||||
|
|
Loading…
Reference in a new issue