Joined: Aug 30, 2005 Posts: 3186 Location: near Albany NY
Posted:
Wed Apr 19, 2006 3:46 pm
in the modules/weblinks/index.php I believe we might need a stripslashes.
Code:
function ratelink($lid, $user, $ttitle) {
global $prefix, $cookie, $datetime, $module_name;
include("header.php");
menu(1);
echo "<br>";
OpenTable();
$ttitle = stripslashes(htmlentities($ttitle));
echo 'ttitle after first htmlentities ' . $ttitle . '<br>';
$transfertitle = ereg_replace ("_", " ", $ttitle);
$displaytitle = $transfertitle;
if(isset($_SERVER['REMOTE_HOST'])) { $ip = $_SERVER['REMOTE_HOST'];}
if (empty($ip)) {
$ip = $_SERVER['REMOTE_ADDR'];
}
echo 'displaytitle before second htmlentities ' . $displaytitle . '<br>';
echo "<b>".htmlentities($displaytitle)."</b>"
The code in the "official" version doesn't have the stripslashes before the htmlentities. After sticking the echoes in I determined that $ttitle is coming in as "MHCC bike club\s" and there is nothing to strip out the \.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum