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
d8d6fb0d
Commit
d8d6fb0d
authored
Jul 27, 2020
by
Scott
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugfix' into dev
parents
4fd88051
c478a0dd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
+9
-11
.travis.yml
.travis.yml
+1
-3
limits.php
qa-include/app/limits.php
+4
-4
post-update.php
qa-include/app/post-update.php
+4
-4
No files found.
.travis.yml
View file @
d8d6fb0d
sudo
:
false
os
:
linux
dist
:
trusty
language
:
php
php
:
-
'
5.4'
-
'
5.5'
-
'
5.6'
-
'
7.0'
-
'
7.1'
...
...
qa-include/app/limits.php
View file @
d8d6fb0d
...
...
@@ -254,26 +254,26 @@ function qa_ipv6_expand($ip)
$ipv6_wildcard
=
true
;
}
if
(
$ipv6_wildcard
)
{
$wildcards
=
explode
(
":"
,
$ip
);
$wildcards
=
explode
(
':'
,
$ip
);
foreach
(
$wildcards
as
$index
=>
$value
)
{
if
(
$value
==
"*"
)
{
$wildcards_matched
[]
=
count
(
$wildcards
)
-
1
-
$index
;
$wildcards
[
$index
]
=
"0"
;
}
}
$ip
=
implode
(
$wildcards
,
":"
);
$ip
=
implode
(
':'
,
$wildcards
);
}
$hex
=
unpack
(
"H*hex"
,
@
inet_pton
(
$ip
));
$ip
=
substr
(
preg_replace
(
"/([0-9A-Fa-f]
{
4
}
)/"
,
"$1:"
,
$hex
[
'hex'
]),
0
,
-
1
);
if
(
$ipv6_wildcard
)
{
$wildcards
=
explode
(
":"
,
$ip
);
$wildcards
=
explode
(
':'
,
$ip
);
foreach
(
$wildcards_matched
as
$value
)
{
$i
=
count
(
$wildcards
)
-
1
-
$value
;
$wildcards
[
$i
]
=
"*"
;
}
$ip
=
implode
(
$wildcards
,
":"
);
$ip
=
implode
(
':'
,
$wildcards
);
}
return
$ip
;
...
...
qa-include/app/post-update.php
View file @
d8d6fb0d
...
...
@@ -93,7 +93,7 @@ function qa_question_set_content($oldquestion, $title, $content, $format, $text,
qa_post_unindex
(
$comment
[
'postid'
]);
}
if
(
@
$closepost
[
'parentid'
]
==
$oldquestion
[
'postid'
])
if
(
isset
(
$closepost
)
&&
$closepost
[
'parentid'
]
==
$oldquestion
[
'postid'
])
qa_post_unindex
(
$closepost
[
'postid'
]);
qa_db_post_set_type
(
$oldquestion
[
'postid'
],
'Q_QUEUED'
);
...
...
@@ -348,7 +348,7 @@ function qa_question_set_status($oldquestion, $status, $userid, $handle, $cookie
qa_post_unindex
(
$comment
[
'postid'
]);
}
if
(
@
$closepost
[
'parentid'
]
==
$oldquestion
[
'postid'
])
if
(
isset
(
$closepost
)
&&
$closepost
[
'parentid'
]
==
$oldquestion
[
'postid'
])
qa_post_unindex
(
$closepost
[
'postid'
]);
$setupdated
=
false
;
...
...
@@ -426,7 +426,7 @@ function qa_question_set_status($oldquestion, $status, $userid, $handle, $cookie
}
}
if
(
$closepost
[
'parentid'
]
==
$oldquestion
[
'postid'
])
{
if
(
isset
(
$closepost
)
&&
$closepost
[
'parentid'
]
==
$oldquestion
[
'postid'
])
{
qa_post_index
(
$closepost
[
'postid'
],
$closepost
[
'type'
],
$oldquestion
[
'postid'
],
$closepost
[
'parentid'
],
null
,
$closepost
[
'content'
],
$closepost
[
'format'
],
qa_viewer_text
(
$closepost
[
'content'
],
$closepost
[
'format'
]),
null
,
$closepost
[
'categoryid'
]);
}
...
...
@@ -505,7 +505,7 @@ function qa_question_set_category($oldquestion, $categoryid, $userid, $handle, $
$otherpostids
[]
=
$comment
[
'postid'
];
}
if
(
@
$closepost
[
'parentid'
]
==
$oldquestion
[
'postid'
])
if
(
isset
(
$closepost
)
&&
$closepost
[
'parentid'
]
==
$oldquestion
[
'postid'
])
$otherpostids
[]
=
$closepost
[
'postid'
];
qa_db_posts_set_category_path
(
$otherpostids
,
$newpath
);
...
...
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