projects
/
web.Reddit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1285e88
)
Reddit/Embedly.php
author
Alan Knowles
<alan@roojs.com>
Tue, 9 Dec 2014 08:43:14 +0000
(16:43 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 9 Dec 2014 08:43:14 +0000
(16:43 +0800)
Reddit/Embedly.php
patch
|
blob
|
history
diff --git
a/Reddit/Embedly.php
b/Reddit/Embedly.php
index
d93968b
..
dde2323
100644
(file)
--- a/
Reddit/Embedly.php
+++ b/
Reddit/Embedly.php
@@
-9,8
+9,14
@@
class Reddit_Embedly extends HTML_FlexyFramework_Page {
function get()
{
- $this->getTwitter();
- exit;
+ $raw_ul = $_REQUEST['url'];
+ $ar = parse_url($raw_ul);
+ if (preg_match('/twitter/i', $ar['host'])) {
+ $this->getTwitter();
+ exit;
+ }
+
+
$url = htmlspecialchars($_REQUEST['url']);