Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
220
Merge Requests
220
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
570dcc57
Commit
570dcc57
authored
Feb 19, 2011
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#892864
by pwolanin, pounard: remove drupal_static() in _drupal_bootstrap_full().
parent
860e5466
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
includes/common.inc
includes/common.inc
+4
-4
No files found.
includes/common.inc
View file @
570dcc57
...
...
@@ -1050,15 +1050,15 @@ function _fix_gpc_magic_files(&$item, $key) {
* Fix double-escaping problems caused by "magic quotes" in some PHP installations.
*/
function
fix_gpc_magic
()
{
$fixed
=
&
drupal_static
(
__FUNCTION__
,
FALSE
)
;
static
$fixed
=
FALSE
;
if
(
!
$fixed
&&
ini_get
(
'magic_quotes_gpc'
))
{
array_walk
(
$_GET
,
'_fix_gpc_magic'
);
array_walk
(
$_POST
,
'_fix_gpc_magic'
);
array_walk
(
$_COOKIE
,
'_fix_gpc_magic'
);
array_walk
(
$_REQUEST
,
'_fix_gpc_magic'
);
array_walk
(
$_FILES
,
'_fix_gpc_magic_files'
);
$fixed
=
TRUE
;
}
$fixed
=
TRUE
;
}
/**
...
...
@@ -4874,12 +4874,12 @@ function drupal_valid_token($token, $value = '', $skip_anonymous = FALSE) {
}
function
_drupal_bootstrap_full
()
{
$called
=
&
drupal_static
(
__FUNCTION__
)
;
static
$called
=
FALSE
;
if
(
$called
)
{
return
;
}
$called
=
1
;
$called
=
TRUE
;
require_once
DRUPAL_ROOT
.
'/'
.
variable_get
(
'path_inc'
,
'includes/path.inc'
);
require_once
DRUPAL_ROOT
.
'/includes/theme.inc'
;
require_once
DRUPAL_ROOT
.
'/includes/pager.inc'
;
...
...
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