Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
8b026b05
Commit
8b026b05
authored
Feb 11, 2016
by
Daniel Ruf
Committed by
Scott
Feb 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eventlog saves IP addresses in plaintext
parent
5a74acfa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
install.php
qa-include/db/install.php
+1
-2
No files found.
qa-include/db/install.php
View file @
8b026b05
...
...
@@ -1472,8 +1472,7 @@
// convert IP addresses to new binary format
$eventlog_exists
=
(
bool
)
qa_db_read_one_value
(
qa_db_query_sub
(
"SELECT 1 FROM ^eventlog LIMIT 1"
));
if
(
$eventlog_exists
){
qa_db_upgrade_query
(
'ALTER TABLE ^eventlog MODIFY ipaddress VARBINARY(16) NULL DEFAULT NULL'
);
qa_db_upgrade_query
(
'UPDATE ^eventlog SET ipaddress = UNHEX(HEX(CAST(ipaddress AS UNSIGNED)))'
);
qa_db_upgrade_query
(
'ALTER TABLE ^eventlog MODIFY ipaddress VARCHAR(45) CHARACTER SET ascii'
);
}
qa_db_upgrade_query
(
'ALTER TABLE ^cookies MODIFY writeip VARBINARY(16) NULL DEFAULT NULL, MODIFY createip VARBINARY(16) NULL DEFAULT NULL'
);
...
...
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