diff --git a/dissociated-press.inc.php b/dissociated-press.inc.php index 5bafd79..cd53776 100644 --- a/dissociated-press.inc.php +++ b/dissociated-press.inc.php @@ -178,7 +178,7 @@ function ProcessText($text, $directory){ } } - return '' . $text . ' '; + return '' . $text . ' '; }else{ return "$text"; } diff --git a/index.php b/index.php index 00f713a..fb9242b 100644 --- a/index.php +++ b/index.php @@ -102,7 +102,7 @@ ?> -<?php print basename($_SERVER['REQUEST_URI']); ?> +<?php print htmlentities(basename($_SERVER['REQUEST_URI'])); ?>