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}
|
||||
# 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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue