Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BRIC
dokuwiki
Commits
e55eb89c
Commit
e55eb89c
authored
19 years ago
by
Andreas Gohr
Browse files
Options
Downloads
Patches
Plain Diff
punbb backend dies when magic quotes enabled
darcs-hash:20060303214459-7ad00-17f399257acafed5914eeb727b45b2fa984f00e8.gz
parent
b7b9e2f2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inc/auth/punbb.class.php
+7
-0
7 additions, 0 deletions
inc/auth/punbb.class.php
inc/init.php
+2
-1
2 additions, 1 deletion
inc/init.php
with
9 additions
and
1 deletion
inc/auth/punbb.class.php
+
7
−
0
View file @
e55eb89c
...
...
@@ -9,6 +9,13 @@
*/
if
(
!
defined
(
'PUN_ROOT'
))
define
(
'PUN_ROOT'
,
DOKU_INC
.
'../forum/'
);
if
(
get_magic_quotes_gpc
()){
nice_die
(
'Sorry the punbb auth backend requires the PHP option
<a href="http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc">magic_quotes_gpc</a>
to be disabled for proper operation. Either setup your PHP install accordingly or
choose a different auth backend.'
);
}
require_once
PUN_ROOT
.
'include/common.php'
;
require_once
DOKU_INC
.
'inc/auth/mysql.class.php'
;
...
...
This diff is collapsed.
Click to expand it.
inc/init.php
+
2
−
1
View file @
e55eb89c
...
...
@@ -60,13 +60,14 @@
}
// kill magic quotes
if
(
get_magic_quotes_gpc
())
{
if
(
get_magic_quotes_gpc
()
&&
!
defined
(
'MAGIC_QUOTES_STRIPPED'
)
)
{
if
(
!
empty
(
$_GET
))
remove_magic_quotes
(
$_GET
);
if
(
!
empty
(
$_POST
))
remove_magic_quotes
(
$_POST
);
if
(
!
empty
(
$_COOKIE
))
remove_magic_quotes
(
$_COOKIE
);
if
(
!
empty
(
$_REQUEST
))
remove_magic_quotes
(
$_REQUEST
);
if
(
!
empty
(
$_SESSION
))
remove_magic_quotes
(
$_SESSION
);
@
ini_set
(
'magic_quotes_gpc'
,
0
);
define
(
'MAGIC_QUOTES_STRIPPED'
,
1
);
}
@
set_magic_quotes_runtime
(
0
);
@
ini_set
(
'magic_quotes_sybase'
,
0
);
...
...
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