aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-10-12 07:53:02 +0200
committercedricbonhomme <devnull@localhost>2012-10-12 07:53:02 +0200
commit4ffc01a6304102929dc9654fa45816835092a7d5 (patch)
tree004e23692150daad3d51942ecf274c1ccdee0e78 /source
parentAdded example of password file. (diff)
downloadnewspipe-4ffc01a6304102929dc9654fa45816835092a7d5.tar.gz
newspipe-4ffc01a6304102929dc9654fa45816835092a7d5.tar.bz2
newspipe-4ffc01a6304102929dc9654fa45816835092a7d5.zip
HTML5 doctype. You have now to be logged to acces to your pyAggr3g470r instance. Usefull if it is hosted on Amazon EC2 for example.
Diffstat (limited to 'source')
-rwxr-xr-xsource/auth.py2
-rwxr-xr-xsource/pyAggr3g470r.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/auth.py b/source/auth.py
index e2bdcf2b..52ceede6 100755
--- a/source/auth.py
+++ b/source/auth.py
@@ -147,7 +147,7 @@ class AuthController(object):
Login page.
"""
msg = ""
- return """<html>
+ return """<!DOCTYPE html>\n<html>
<head>
<link rel="stylesheet" type="text/css" href="/css/style.css" />
</head>
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index 58737890..89c73136 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -82,7 +82,7 @@ def htmlheader(nb_unread_articles=""):
Return the header of the HTML page with the number of unread articles
in the 'title' HTML tag..
"""
- return '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n' + \
+ return '<!DOCTYPE html>\n' + \
'<head>' + \
'\n\t<title>'+ nb_unread_articles +'pyAggr3g470r - News aggregator</title>\n' + \
'\t<link rel="stylesheet" type="text/css" href="/css/style.css" />' + \
bgstack15