diff options
author | Pascal Chevrel <pascal@chevrel.org> | 2012-02-26 18:52:04 +0100 |
---|---|---|
committer | Pascal Chevrel <pascal@chevrel.org> | 2012-02-26 18:52:04 +0100 |
commit | 96f4fc22a85de714b6a8c762db8d6be26d803c78 (patch) | |
tree | 40727ba22aedf4690d3e9a76ef45b56b7c8b0d32 | |
parent | aee3d50dea12457720c4e79988a76ec820ba1bee (diff) | |
download | planet-96f4fc22a85de714b6a8c762db8d6be26d803c78.tar planet-96f4fc22a85de714b6a8c762db8d6be26d803c78.tar.gz planet-96f4fc22a85de714b6a8c762db8d6be26d803c78.tar.bz2 planet-96f4fc22a85de714b6a8c762db8d6be26d803c78.tar.xz planet-96f4fc22a85de714b6a8c762db8d6be26d803c78.zip |
remove unhtmlspecialchars() which is a reimplementation of a native php function, htmlspecialchars_decode()
-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();
|