Commit 88f6efeb authored by Timothy Stack's avatar Timothy Stack

Don't run stripslashes() over the nsfile after it's been retrieved

from the DB.
parent 14801d6d
......@@ -233,7 +233,7 @@ else if (strcmp($mode, "clear") == 0) {
"where pid='$pid' and eid='$eid'");
if (mysql_num_rows($query_result)) {
$row = mysql_fetch_array($query_result);
$nsdata = stripslashes($row[nsfile]);
$nsdata = $row[nsfile];
}
else {
$nsdata = ""; # XXX what to do...
......
......@@ -125,7 +125,7 @@ if (! isset($go)) {
"where pid='$pid' and eid='$eid'");
if (mysql_num_rows($query_result)) {
$row = mysql_fetch_array($query_result);
$nsfile = stripslashes($row[nsfile]);
$nsfile = $row[nsfile];
echo "$nsfile";
}
......
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# Copyright (c) 2000-2005 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");
......@@ -108,7 +108,7 @@ $query_result = DBQueryFatal("SELECT nsfile from nsfiles ".
"where pid='$pid' and eid='$eid'");
if (mysql_num_rows($query_result)) {
$row = mysql_fetch_array($query_result);
$nsdata = stripslashes($row[nsfile]);
$nsdata = $row[nsfile];
}
else {
$nsdata = ""; # XXX what to do...
......
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# Copyright (c) 2000-2005 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");
......@@ -80,7 +80,7 @@ if ($justns) {
DBQueryFatal("SELECT nsfile from nsfiles where pid='$pid' and eid='$eid'");
if (mysql_num_rows($query_result)) {
$row = mysql_fetch_array($query_result);
$nsfile = stripslashes($row[nsfile]);
$nsfile = $row[nsfile];
echo "$nsfile\n";
# flush();
......@@ -198,7 +198,7 @@ $query_result =
DBQueryFatal("SELECT nsfile from nsfiles where pid='$pid' and eid='$eid'");
if (mysql_num_rows($query_result)) {
$row = mysql_fetch_array($query_result);
$nsfile = stripslashes($row[nsfile]);
$nsfile = $row[nsfile];
echo "<XMP>$nsfile</XMP>\n";
flush();
......
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2003, 2005 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");
......@@ -45,7 +45,7 @@ if (isset($pid) && isset($eid)) {
"experiment $eid in project $pid!", 1);
}
$row = mysql_fetch_array($query_result);
$nsfile = stripslashes($row["nsfile"]);
$nsfile = $row["nsfile"];
header("Content-Type: text/plain");
echo "$nsfile\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment