Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
015b9419
Commit
015b9419
authored
8 years ago
by
Juanjo Menent
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #5478 from simnandez/4.0
Merge #5464 Fix: Prevent SQLiFix into 4.0
parents
c787e7f2
fc5b3086
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/admin/menus/edit.php
+2
-2
2 additions, 2 deletions
htdocs/admin/menus/edit.php
htdocs/compta/bank/ligne.php
+2
-2
2 additions, 2 deletions
htdocs/compta/bank/ligne.php
htdocs/societe/notify/card.php
+1
-1
1 addition, 1 deletion
htdocs/societe/notify/card.php
with
5 additions
and
5 deletions
htdocs/admin/menus/edit.php
+
2
−
2
View file @
015b9419
...
...
@@ -243,7 +243,7 @@ if ($action == 'confirm_delete' && $_POST["confirm"] == 'yes')
{
$this
->
db
->
begin
();
$sql
=
"DELETE FROM "
.
MAIN_DB_PREFIX
.
"menu WHERE rowid = "
.
$_
GET
[
'menuId'
]
;
$sql
=
"DELETE FROM "
.
MAIN_DB_PREFIX
.
"menu WHERE rowid = "
.
GET
POST
(
'menuId'
,
'int'
)
;
$db
->
query
(
$sql
);
if
(
$result
==
0
)
...
...
@@ -312,7 +312,7 @@ if ($action == 'create')
$parent_rowid
=
$_GET
[
'menuId'
];
if
(
$_GET
[
'menuId'
])
{
$sql
=
"SELECT m.rowid, m.mainmenu, m.leftmenu, m.level, m.langs FROM "
.
MAIN_DB_PREFIX
.
"menu as m WHERE m.rowid = "
.
$_
GET
[
'menuId'
]
;
$sql
=
"SELECT m.rowid, m.mainmenu, m.leftmenu, m.level, m.langs FROM "
.
MAIN_DB_PREFIX
.
"menu as m WHERE m.rowid = "
.
GET
POST
(
'menuId'
,
'int'
)
;
$res
=
$db
->
query
(
$sql
);
if
(
$res
)
{
...
...
This diff is collapsed.
Click to expand it.
htdocs/compta/bank/ligne.php
+
2
−
2
View file @
015b9419
...
...
@@ -83,13 +83,13 @@ if ($action == 'confirm_delete_categ' && $confirm == "yes" && $user->rights->ban
if
(
$user
->
rights
->
banque
->
modifier
&&
$action
==
'class'
)
{
$sql
=
"DELETE FROM "
.
MAIN_DB_PREFIX
.
"bank_class WHERE lineid = "
.
$rowid
.
" AND fk_categ = "
.
$_
POST
[
"
cat1
"
]
;
$sql
=
"DELETE FROM "
.
MAIN_DB_PREFIX
.
"bank_class WHERE lineid = "
.
$rowid
.
" AND fk_categ = "
.
GET
POST
(
'
cat1
'
,
'int'
)
;
if
(
!
$db
->
query
(
$sql
))
{
dol_print_error
(
$db
);
}
$sql
=
"INSERT INTO "
.
MAIN_DB_PREFIX
.
"bank_class (lineid, fk_categ) VALUES ("
.
$rowid
.
", "
.
$_
POST
[
"
cat1
"
]
.
")"
;
$sql
=
"INSERT INTO "
.
MAIN_DB_PREFIX
.
"bank_class (lineid, fk_categ) VALUES ("
.
$rowid
.
", "
.
GET
POST
(
'
cat1
'
,
'int'
)
.
")"
;
if
(
!
$db
->
query
(
$sql
))
{
dol_print_error
(
$db
);
...
...
This diff is collapsed.
Click to expand it.
htdocs/societe/notify/card.php
+
1
−
1
View file @
015b9419
...
...
@@ -125,7 +125,7 @@ if (empty($reshook))
// Remove a notification
if
(
$action
==
'delete'
)
{
$sql
=
"DELETE FROM "
.
MAIN_DB_PREFIX
.
"notify_def where rowid="
.
$_
GET
[
"actid"
]
;
$sql
=
"DELETE FROM "
.
MAIN_DB_PREFIX
.
"notify_def where rowid="
.
GET
POST
(
'actid'
,
'int'
)
;
$db
->
query
(
$sql
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment