Permalink
Browse files

minor, added correct escaping for the content output and cleaned up s…

…ome code
  • Loading branch information...
1 parent d248f83 commit 598405bce8284a0083714b2e2e817fd607d29c5a @fabricio2345 fabricio2345 committed Feb 13, 2009
Showing with 8 additions and 15 deletions.
  1. +0 −7 main.py
  2. +3 −3 templates/index.html
  3. +5 −5 templates/show.html
View
@@ -392,13 +392,6 @@ def get(self, short, rubish):
return True
-class Test(webapp.RequestHandler):
- def get(self):
- c = "abcdefghijklmnopqrstuvxywz0123456789"
- l, key = len(c) , ''
- while len(key) < 5: key += c[randrange(0,l)]
- self.response.out.write(key)
-
class SignIn(webapp.RequestHandler):
def get(self):
user = users.get_current_user()
View
@@ -82,9 +82,9 @@
<div class="footer">
<p>
<a href="/">Home</a> |
- <a href="http://code.quoteurl.com">View Source</a> |
- <a href="http://bugs.quoteurl.com">Bugs</a> |
- <a href="http://support.quoteurl.com">Support</a>
+ <a href="http://github.com/fczuardi/quoteurl/tree/master">View Source</a> |
+ <a href="http://fczuardi.lighthouseapp.com/projects/24896-quoteurl/tickets">Bugs</a> |
+ <a href="http://pledgie.org/campaigns/2814">Support</a>
<em>
© 2009 <a href="http://fabricio.org">Fabricio Zuardi</a>.
Powered by
View
@@ -26,7 +26,7 @@
<div class="status-body">
<a class="author" title="{{tweet.user.name}}" href="http://twitter.com/{{tweet.user.screen_name}}">{{tweet.user.screen_name}}</a>
<span class="entry-content">
- {{tweet.text|urlize|twitter_at_linkify}}
+ {{tweet.text|escape|urlize|twitter_at_linkify}}
</span>
<span class="meta entry-meta">
<a rel="bookmark" class="entry-date" href="http://twitter.com/{{tweet.user.screen_name}}/status/{{tweet.id}}">
@@ -50,7 +50,7 @@
&lt;div class="status-body" style="margin-right:30px;padding-right:1em;"&gt;
&lt;a class="author" style="font-weight:bold;" title="{{tweet.user.name}}" href="http://twitter.com/{{tweet.user.screen_name}}"&gt;{{tweet.user.screen_name}}&lt;/a&gt;
&lt;span class="entry-content" style="font-style:normal"&gt;
- {{tweet.text|urlize|twitter_at_linkify|escape}}
+ {{tweet.text|escape|urlize|twitter_at_linkify|escape}}
&lt;/span&gt;
&lt;span class="meta entry-meta" style="color:#888;font-family:georgia;font-size:0.8em;font-style:italic;"&gt;
&lt;a rel="bookmark" class="entry-date" style="color:#888;text-decoration:none;" href="http://twitter.com/{{tweet.user.screen_name}}/status/{{tweet.id}}" onmouseover="this.style.textDecoration='underline';" onmouseout="this.style.textDecoration='none';"&gt;
@@ -73,9 +73,9 @@
<div class="footer">
<p>
<a href="/">Home</a> |
- <a href="http://code.quoteurl.com">View Source</a> |
- <a href="http://bugs.quoteurl.com">Bugs</a> |
- <a href="http://support.quoteurl.com">Support</a>
+ <a href="http://github.com/fczuardi/quoteurl/tree/master">View Source</a> |
+ <a href="http://fczuardi.lighthouseapp.com/projects/24896-quoteurl/tickets">Bugs</a> |
+ <a href="http://pledgie.org/campaigns/2814">Support</a>
<em>
© 2009 <a href="http://fabricio.org">Fabricio Zuardi</a>.
Powered by

0 comments on commit 598405b

Please sign in to comment.