diff --git a/routes/index.js b/routes/index.js index 3798ca0..ec3d4c9 100644 --- a/routes/index.js +++ b/routes/index.js @@ -232,7 +232,7 @@ router.get('/address/:hash/:count', function(req, res) { }); router.post('/search', function(req, res) { - var query = req.body.search; + var query = req.body.search.trim(); if (query.length == 64) { if (query == settings.genesis_tx) { res.redirect('/block/' + settings.genesis_block);