Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Antoine
ae2
Commits
57559615
Commit
57559615
authored
Mar 24, 2014
by
Dustri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix yet Another SQLI
parent
af0c5242
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
planet/index.php
planet/index.php
+5
-5
No files found.
planet/index.php
View file @
57559615
...
...
@@ -168,10 +168,10 @@ elseif(isset($_REQUEST["modere"]) && $site->user->is_in_group("moderateur_site")
{
if
(
isset
(
$_REQUEST
[
"id_tag"
]))
$req
=
new
requete
(
$site
->
dbrw
,
"UPDATE `planet_tags` SET `modere`='1' "
.
"WHERE `id_tag` = '"
.
$_REQUEST
[
"id_tag"
]
.
"'"
);
"WHERE `id_tag` = '"
.
mysql_real_escape_string
(
$_REQUEST
[
"id_tag"
]
)
.
"'"
);
if
(
isset
(
$_REQUEST
[
"id_flux"
]))
$req
=
new
requete
(
$site
->
dbrw
,
"UPDATE `planet_flux` SET `modere`='1' "
.
"WHERE `id_flux` = '"
.
$_REQUEST
[
"id_flux"
]
.
"'"
);
"WHERE `id_flux` = '"
.
mysql_real_escape_string
(
$_REQUEST
[
"id_flux"
]
)
.
"'"
);
}
elseif
(
$_REQUEST
[
"action"
]
==
"delete"
)
{
...
...
@@ -198,7 +198,7 @@ elseif(isset($_REQUEST["modere"]) && $site->user->is_in_group("moderateur_site")
{
foreach
(
$_REQUEST
[
"id_tags"
]
AS
$tag
)
$req
=
new
requete
(
$site
->
dbrw
,
"UPDATE `planet_tags` SET `modere`='1' "
.
"WHERE `id_tag` = '"
.
$tag
.
"'"
);
"WHERE `id_tag` = '"
.
mysql_real_escape_string
(
$tag
)
.
"'"
);
}
}
elseif
(
$_REQUEST
[
"action"
]
==
"deleteflux"
)
...
...
@@ -219,7 +219,7 @@ elseif(isset($_REQUEST["modere"]) && $site->user->is_in_group("moderateur_site")
{
foreach
(
$_REQUEST
[
"id_fluxs"
]
AS
$flux
)
$req
=
new
requete
(
$site
->
dbrw
,
"UPDATE `planet_flux` SET `modere`='1' "
.
"WHERE `id_flux` = '"
.
$flux
.
"'"
);
"WHERE `id_flux` = '"
.
mysql_real_escape_string
(
$flux
)
.
"'"
);
}
}
}
...
...
@@ -334,7 +334,7 @@ elseif($_REQUEST["view"]=="perso")
"ON (`planet_user_flux`.`id_flux`=`planet_flux`.`id_flux` "
.
"AND `planet_user_flux`.`id_utilisateur` = '"
.
$site
->
user
->
id
.
"') "
.
"WHERE (`planet_flux`.`id_utilisateur`='"
.
$site
->
user
->
id
.
"' OR `planet_flux`.`modere`= '1')"
.
"AND `planet_flux_tags`.`id_tag`='"
.
$_REQUEST
[
"tagid"
]
.
"'"
);
"AND `planet_flux_tags`.`id_tag`='"
.
mysql_real_escape_string
(
$_REQUEST
[
"tagid"
]
)
.
"'"
);
$cts
=
new
contents
(
"Vos désabonnements dans le tag"
);
if
(
$req
->
lines
>
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment