summaryrefslogtreecommitdiffstats
path: root/postload.php
diff options
context:
space:
mode:
Diffstat (limited to 'postload.php')
-rw-r--r--postload.php18
1 files changed, 4 insertions, 14 deletions
diff --git a/postload.php b/postload.php
index 281c4f7..e1670d8 100644
--- a/postload.php
+++ b/postload.php
@@ -1,26 +1,16 @@
<?php
-include_once(dirname(__FILE__).'/app/app.php');
-
-function unhtmlspecialchars( $string ) {
- $string = str_replace ( '&amp;', '&', $string );
- $string = str_replace ( '&#039;', '\'', $string );
- $string = str_replace ( '&quot;', '\"', $string );
- $string = str_replace ( '&lt;', '<', $string );
- $string = str_replace ( '&gt;', '>', $string );
-
- return $string;
-}
+include_once(dirname(__FILE__).'/app/app.php');
$Planet->addPerson(
new PlanetPerson(
'',
- unhtmlspecialchars($_GET['url']),
+ htmlspecialchars_decode($_GET['url'], ENT_QUOTES),
''
)
-);
+);
//Load feeds
$Planet->download(1);
header("Content-type: image/png");
readfile(dirname(__FILE__)."/custom/img/feed.png");
-die(); \ No newline at end of file
+die();