[Fusionforge-commits] r10424 - in trunk/src/www: my pm/msproject project/admin survey themes/gforge-simple-theme
Alain Peyrat
aljeux at libremir.placard.fr.eu.org
Wed Sep 8 20:22:11 CEST 2010
Author: aljeux
Date: 2010-09-08 20:22:10 +0200 (Wed, 08 Sep 2010)
New Revision: 10424
Modified:
trunk/src/www/my/bookmark_add.php
trunk/src/www/pm/msproject/xmlparser.php
trunk/src/www/project/admin/editimages.php
trunk/src/www/survey/survey_resp.php
trunk/src/www/themes/gforge-simple-theme/Theme.class.php
Log:
Remove now useless stripslashes()
Modified: trunk/src/www/my/bookmark_add.php
===================================================================
--- trunk/src/www/my/bookmark_add.php 2010-09-08 18:22:00 UTC (rev 10423)
+++ trunk/src/www/my/bookmark_add.php 2010-09-08 18:22:10 UTC (rev 10424)
@@ -33,7 +33,7 @@
if (getStringFromRequest('submit') && $bookmark_url && $bookmark_title) {
- printf(_('Added bookmark for <strong>%1$s</strong> with title <strong>%2$s</strong>'), htmlspecialchars(stripslashes($bookmark_url)),htmlspecialchars(stripslashes($bookmark_title))).".<p> </p>";
+ printf(_('Added bookmark for <strong>%1$s</strong> with title <strong>%2$s</strong>'), htmlspecialchars($bookmark_url),htmlspecialchars($bookmark_title)).".<p> </p>";
bookmark_add ($bookmark_url, $bookmark_title);
print "<a href=\"$bookmark_url\">"._('Visit the bookmarked page')."</a> - ";
Modified: trunk/src/www/pm/msproject/xmlparser.php
===================================================================
--- trunk/src/www/pm/msproject/xmlparser.php 2010-09-08 18:22:00 UTC (rev 10423)
+++ trunk/src/www/pm/msproject/xmlparser.php 2010-09-08 18:22:10 UTC (rev 10424)
@@ -63,9 +63,6 @@
//printr($data,'initial-data');
// SECTION 1. DEBUG XML
-//$data = stripslashes($data);
-//$data = stripslashes($data);
-//$data = stripslashes($data);
$data = str_replace("</ ","</",$data);
$data = str_replace("</ ","</",$data);
$data = str_replace("\r","",$data);
Modified: trunk/src/www/project/admin/editimages.php
===================================================================
--- trunk/src/www/project/admin/editimages.php 2010-09-08 18:22:00 UTC (rev 10423)
+++ trunk/src/www/project/admin/editimages.php 2010-09-08 18:22:10 UTC (rev 10424)
@@ -303,11 +303,11 @@
.'<td>'.date('Y-m-d', db_result($result, $i, 'upload_date')).'</td>'
- .'<td>'.util_make_link ('/dbimage.php?id='.db_result($result,$i,'id'), stripslashes(db_result($result,$i,'filename'))).'</td>'
+ .'<td>'.util_make_link ('/dbimage.php?id='.db_result($result,$i,'id'), db_result($result,$i,'filename')).'</td>'
.'<td>'.db_result($result,$i,'filetype').'</td>'
.'<td style="text-align:right">'.db_result($result,$i,'filesize').'</td>'
.'<td style="text-align:right">'.$dims.'</td>'
- .'<td>'.stripslashes(db_result($result,$i,'description')).'</td>'
+ .'<td>'.db_result($result,$i,'description').'</td>'
.'</tr>';
}
Modified: trunk/src/www/survey/survey_resp.php
===================================================================
--- trunk/src/www/survey/survey_resp.php 2010-09-08 18:22:00 UTC (rev 10423)
+++ trunk/src/www/survey/survey_resp.php 2010-09-08 18:22:10 UTC (rev 10424)
@@ -74,8 +74,8 @@
Delete this customer's responses in case they had back-arrowed
*/
$result = db_query_params ('DELETE FROM survey_responses WHERE survey_id=$1 AND group_id=$2 AND user_id=$3',
- array(addslashes($survey_id) ,
- addslashes($group_id) ,
+ array($survey_id,
+ $group_id,
user_getid()));
/*
Select this survey from the database
Modified: trunk/src/www/themes/gforge-simple-theme/Theme.class.php
===================================================================
--- trunk/src/www/themes/gforge-simple-theme/Theme.class.php 2010-09-08 18:22:00 UTC (rev 10423)
+++ trunk/src/www/themes/gforge-simple-theme/Theme.class.php 2010-09-08 18:22:10 UTC (rev 10424)
@@ -672,7 +672,7 @@
<input type="hidden" name="search" value="1"/>
<input type="hidden" name="group_id" value="'.$group_id.'"/>
<div id="advancedsearchtext">
- <input type="text" size="60" name="words" value="'.stripslashes(htmlspecialchars($words)).'" />
+ <input type="text" size="60" name="words" value="'.htmlspecialchars($words).'" />
<input type="submit" name="submitbutton" value="'._('Search').'" />
<input type="radio" name="mode" value="'.SEARCH__MODE_AND.'" '.($isExact ? 'checked="checked"' : '').' />'._('with all words').'
<input type="radio" name="mode" value="'.SEARCH__MODE_OR.'" '.(!$isExact ? 'checked="checked"' : '').' />'._('with one word').'
More information about the Fusionforge-commits
mailing list