Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
b8f15732
Commit
b8f15732
authored
Nov 19, 2009
by
tbrehm
Browse files
Removed magic_quotes_runtime for compatibility with PHP 6
parent
adf199c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/tpl.inc.php
View file @
b8f15732
...
...
@@ -1226,10 +1226,10 @@ if (!defined('vlibTemplateClassLoaded')) {
*/
private
function
_intParse
()
{
$mqrt
=
get_magic_quotes_runtime
();
set_magic_quotes_runtime
(
0
);
//
$mqrt = get_magic_quotes_runtime();
//
set_magic_quotes_runtime(0);
$this
->
_tmplfilep
=
'?>'
.
$this
->
_getData
(
$this
->
_tmplfilename
)
.
'<?php return true;'
;
set_magic_quotes_runtime
(
$mqrt
);
//
set_magic_quotes_runtime($mqrt);
return
true
;
}
...
...
server/lib/classes/tpl.inc.php
View file @
b8f15732
...
...
@@ -1339,10 +1339,10 @@ if (!defined('vlibTemplateClassLoaded')) {
* @return boolean true/false
*/
function
_intParse
()
{
$mqrt
=
get_magic_quotes_runtime
();
set_magic_quotes_runtime
(
0
);
//
$mqrt = get_magic_quotes_runtime();
//
set_magic_quotes_runtime(0);
$this
->
_tmplfilep
=
'?>'
.
$this
->
_getData
(
$this
->
_tmplfilename
)
.
'<?php return true;'
;
set_magic_quotes_runtime
(
$mqrt
);
//
set_magic_quotes_runtime($mqrt);
return
true
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment