editor for client
This commit is contained in:
@@ -14,7 +14,7 @@ from utils.utils import *
|
||||
from utils.crypt import *
|
||||
|
||||
|
||||
__FLEES_VERSION__ = "20180721.1"
|
||||
__FLEES_VERSION__ = "20180724.0"
|
||||
app = Flask(__name__)
|
||||
app.config.from_object(__name__)
|
||||
# Read config from json !
|
||||
@@ -251,7 +251,7 @@ def editor(name = None):
|
||||
content = ""
|
||||
if os.path.isfile(pathname):
|
||||
if pathname.endswith(".txt"):
|
||||
content = open(pathname, 'rt').read(10 * 1024)
|
||||
content = open(pathname, 'rt').read(65536)
|
||||
|
||||
return render_template(
|
||||
'editor.html',
|
||||
|
||||
Reference in New Issue
Block a user