[TEP-COMMIT] [CVS admin] remove calls to stripslashes()

hpdl-OfajU3CKLf1/[email protected] 7 Mar 2005 10:06:45 -0000
Newsgroups gmane.comp.web.oscommerce.cvs
Message-ID <[email protected]>
<html>
<head>
<style><!--
  body {background-color:#ffffff;}
  .file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
  .pathname {font-family:monospace; float:right;}
  .fileheader {margin-bottom:.5em;}
  .diff {margin:0;}
  .tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
  .tasklist ul {margin-top:0;margin-bottom:0;}
  tr.alt {background-color:#eeeeee}
  #added {background-color:#ddffdd;}
  #addedchars {background-color:#99ff99;font-weight:bolder;}
  tr.alt #added {background-color:#ccf7cc;}
  #removed {background-color:#ffdddd;}
  #removedchars {background-color:#ff9999;font-weight:bolder;}
  tr.alt #removed {background-color:#f7cccc;}
  #info {color:#888888;}
  #context {background-color:#eeeeee;}
  td {padding-left:.3em;padding-right:.3em;}
  tr.head {border-bottom-width:1px;border-bottom-style:solid;}
  tr.head td {padding:0;padding-top:.2em;}
  .task {background-color:#ffff00;}
  .comment {padding:4px;border:1px dashed #000000;background-color:#ffffdd}
  .error {color:red;}
  hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in <b><tt>admin/admin/includes/functions</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1">html_output.php</a></tt></td><td align="right" id="added">+6</td><td align="right" id="removed">-6</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/html_output.php?rev=1.35&amp;content-type=text/vnd.viewcvs-markup">1.35</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/html_output.php.diff?r1=1.35&amp;r2=1.36">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/html_output.php?rev=1.36&amp;content-type=text/vnd.viewcvs-markup">1.36</a></td></tr>
</table>
<pre class="comment">
remove calls to stripslashes()
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes">includes</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions">functions</a><br /></span>
<div class="fileheader"><big><b>html_output.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/html_output.php?rev=1.35&amp;content-type=text/vnd.viewcvs-markup">1.35</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/html_output.php.diff?r1=1.35&amp;r2=1.36">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/html_output.php?rev=1.36&amp;content-type=text/vnd.viewcvs-markup">1.36</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.35 -r1.36
--- html_output.php	2004/11/07 21:00:36	1.35
+++ html_output.php	2005/03/07 10:06:44	1.36
@@ -157,7 +157,7 @@
</small></pre><pre class="diff" id="context">     $field = '&lt;input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"';
 
     if (isset($GLOBALS[$name]) &amp;&amp; ($reinsert_value == true) &amp;&amp; is_string($GLOBALS[$name])) {
</pre><pre class="diff" id="removed">-      $field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"';
</pre><pre class="diff" id="added">+      $field .= ' value="' . tep_output_string($GLOBALS[$name]) . '"';
</pre><pre class="diff" id="context">     } elseif (tep_not_null($value)) {
       $field .= ' value="' . tep_output_string($value) . '"';
     }
</pre><pre class="diff"><small id="info">@@ -214,7 +214,7 @@
</small></pre><pre class="diff" id="context"> 
     if (tep_not_null($value)) $selection .= ' value="' . tep_output_string($value) . '"';
 
</pre><pre class="diff" id="removed">-    if ( ($checked == true) || (isset($GLOBALS[$name]) &amp;&amp; is_string($GLOBALS[$name]) &amp;&amp; ($GLOBALS[$name] == 'on')) || (isset($value) &amp;&amp; isset($GLOBALS[$name]) &amp;&amp; (<span id="removedchars">stripslashes($GLOBALS[$name])</span> == $value)) || (tep_not_null($value) &amp;&amp; tep_not_null($compare) &amp;&amp; ($value == $compare)) ) {
</pre><pre class="diff" id="added">+    if ( ($checked == true) || (isset($GLOBALS[$name]) &amp;&amp; is_string($GLOBALS[$name]) &amp;&amp; ($GLOBALS[$name] == 'on')) || (isset($value) &amp;&amp; isset($GLOBALS[$name]) &amp;&amp; (<span id="addedchars">$GLOBALS[$name]</span> == $value)) || (tep_not_null($value) &amp;&amp; tep_not_null($compare) &amp;&amp; ($value == $compare)) ) {
</pre><pre class="diff" id="context">       $selection .= ' CHECKED';
     }
 
</pre><pre class="diff"><small id="info">@@ -245,9 +245,9 @@
</small></pre><pre class="diff" id="context">     $field .= '&gt;';
 
     if ( (isset($GLOBALS[$name])) &amp;&amp; ($reinsert_value == true) ) {
</pre><pre class="diff" id="removed">-      $field .= stripslashes($GLOBALS[$name]);
</pre><pre class="diff" id="added">+      $field .= $GLOBALS[$name];
</pre><pre class="diff" id="context">     } elseif (tep_not_null($text)) {
</pre><pre class="diff" id="removed">-      $field .= stripslashes($text);
</pre><pre class="diff" id="added">+      $field .= $text;
</pre><pre class="diff" id="context">     }
 
     $field .= '&lt;/textarea&gt;';
</pre><pre class="diff"><small id="info">@@ -291,7 +291,7 @@
</small></pre><pre class="diff" id="context">     if (tep_not_null($value)) {
       $field .= ' value="' . tep_output_string($value) . '"';
     } elseif (isset($GLOBALS[$name]) &amp;&amp; is_string($GLOBALS[$name])) {
</pre><pre class="diff" id="removed">-      $field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"';
</pre><pre class="diff" id="added">+      $field .= ' value="' . tep_output_string($GLOBALS[$name]) . '"';
</pre><pre class="diff" id="context">     }
 
     if (tep_not_null($parameters)) $field .= ' ' . $parameters;
</pre><pre class="diff"><small id="info">@@ -310,7 +310,7 @@
</small></pre><pre class="diff" id="context"> 
     $field .= '&gt;';
 
</pre><pre class="diff" id="removed">-    if (empty($default) &amp;&amp; isset($GLOBALS[$name])) $default = <span id="removedchars">stripslashes($GLOBALS[$name])</span>;
</pre><pre class="diff" id="added">+    if (empty($default) &amp;&amp; isset($GLOBALS[$name])) $default = <span id="addedchars">$GLOBALS[$name]</span>;
</pre><pre class="diff" id="context"> 
     for ($i=0, $n=sizeof($values); $i&lt;$n; $i++) {
       $field .= '&lt;option value="' . tep_output_string($values[$i]['id']) . '"';
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -&gt; email">CVSspam</a> 0.2.9</small></center>
</body></html>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click