diff options
author | Maurice Svay <maurice@svay.com> | 2012-03-06 08:44:36 -0800 |
---|---|---|
committer | Maurice Svay <maurice@svay.com> | 2012-03-06 08:44:36 -0800 |
commit | b86fc236fff8c160be622fa3976275ca064bec00 (patch) | |
tree | 59ac1e846897cfd7aec8ceae573ebc45dc65880a | |
parent | 0e1dd2b7cc37be0832e89900f210a2a7dfd5c980 (diff) | |
parent | 96f4fc22a85de714b6a8c762db8d6be26d803c78 (diff) | |
download | planet-b86fc236fff8c160be622fa3976275ca064bec00.tar planet-b86fc236fff8c160be622fa3976275ca064bec00.tar.gz planet-b86fc236fff8c160be622fa3976275ca064bec00.tar.bz2 planet-b86fc236fff8c160be622fa3976275ca064bec00.tar.xz planet-b86fc236fff8c160be622fa3976275ca064bec00.zip |
Merge pull request #9 from pascalchevrel/unhtmlspecialchars
Unhtmlspecialchars
-rw-r--r-- | postload.php | 18 |
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 ( '&', '&', $string ); - $string = str_replace ( ''', '\'', $string ); - $string = str_replace ( '"', '\"', $string ); - $string = str_replace ( '<', '<', $string ); - $string = str_replace ( '>', '>', $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();
|