{
$raw_ul = $_REQUEST['url'];
+ $url = htmlspecialchars($_REQUEST['url']);
+
$ar = parse_url($raw_ul);
if (preg_match('/twitter/i', $ar['host'])) {
- $this->getTwitter();
+ $this->getTwitter($url);
exit;
}
{
echo '<html><head><style type="text/css">html, iframe, body, object, embed, div, span, p { margin: 0; padding: 0; } iframe { max-width: 100%; }</style>
</head><body><blockquote class="twitter-tweet" width="485"><p>
- <a href="https://twitter.com/krislc/status/542228550837747712">December 9, 2014</a>
+ <a href="'.$url . '">December 9, 2014</a>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script></body></html>';
exit;
}