Skip to content
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.

Commit

Permalink
sanitize all the things, don't crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Boutell committed Jun 16, 2014
1 parent 2b12e9f commit 82911e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -51,8 +51,8 @@ function Construct(options, callback) {
var url;

app.get('/apos-twitter/feed', function(req, res) {
var username = req.query.username;
var hashtag = req.query.hashtag;
var username = apos.sanitizeString(req.query.username);
var hashtag = apos.sanitizeString(req.query.hashtag);

if (!username.length) {
res.statusCode = 404;
Expand Down

0 comments on commit 82911e2

Please sign in to comment.