Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
0000734: bug on tags edition
Useless functions removed

git-svn-id: http://piwigo.org/svn/trunk@2098 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
patdenice committed Sep 19, 2007
1 parent e74e456 commit 11567fb
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions admin/tags.php
Expand Up @@ -61,14 +61,7 @@
// we must not rename tag with an already existing name
foreach (explode(',', $_POST['edit_list']) as $tag_id)
{
if (function_exists('mysql_real_escape_string'))
{
$tag_name = mysql_real_escape_string(stripslashes($_POST['tag_name-'.$tag_id]));
}
else
{
$tag_name = mysql_escape_string(stripslashes($_POST['tag_name-'.$tag_id]));
}
$tag_name = stripslashes($_POST['tag_name-'.$tag_id]);

if ($tag_name != $current_name_of[$tag_id])
{
Expand All @@ -88,7 +81,7 @@
$updates,
array(
'id' => $tag_id,
'name' => $tag_name,
'name' => addslashes($tag_name),
'url_name' => str2url($tag_name),
)
);
Expand Down Expand Up @@ -148,14 +141,7 @@

if (isset($_POST['add']) and !empty($_POST['add_tag']) and !is_adviser())
{
if (function_exists('mysql_real_escape_string'))
{
$tag_name = mysql_real_escape_string(stripslashes($_POST['add_tag']));
}
else
{
$tag_name = mysql_escape_string(stripslashes($_POST['add_tag']));
}
$tag_name = $_POST['add_tag'];

// does the tag already exists?
$query = '
Expand Down

0 comments on commit 11567fb

Please sign in to comment.