Commit 2ef94a31 authored by Gaute Hope's avatar Gaute Hope

escape &

svn path=/trunk/; revision=1112
parent 5b43c103
......@@ -575,6 +575,7 @@ class At:
result = lines[prelen:(-1 - prelen)]
result = result.replace("\n",";")
result = result.replace ("&", "&")
#remove ending newlines, not if result len = 0
if len(result) < 2:
done = 1
......
......@@ -731,5 +731,7 @@ class Crontab:
cnt = cnt + 1
if cnt > preview_len:
result = result + "..."
result = result.replace ("&", "&amp;")
return result
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment