You might want to put some sort of URL validation as at the moment it could be used to store other data.
Also by entering what I've put at http://hastebin.com/ruxixitunu I'm provided with http://fry.io/9m which returns a 502 Bad Gateway error from your nginx server (BUG?).