Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F727006
D385.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jan 6, 5:02 AM
Size
768 B
Mime Type
text/x-diff
Expires
Tue, Jan 7, 5:02 AM (3 d, 2 h ago)
Engine
blob
Format
Raw Data
Handle
537075
Attached To
D385: INP-1787 - Don't use "get_magic_quotes_gpc" function
D385.id.diff
View Options
Index: branches/5.2.x/core/kernel/utility/http_query.php
===================================================================
--- branches/5.2.x/core/kernel/utility/http_query.php
+++ branches/5.2.x/core/kernel/utility/http_query.php
@@ -636,21 +636,11 @@
function StripSlashes($array)
{
- static $magic_quotes = null;
-
- if (!isset($magic_quotes)) {
- $magic_quotes = get_magic_quotes_gpc();
- }
-
foreach ($array as $key => $value) {
if (is_array($value)) {
$array[$key] = $this->StripSlashes($value);
}
else {
- if ($magic_quotes) {
- $value = stripslashes($value);
- }
-
if (!$this->Application->isAdmin) {
// TODO: always escape output instead of input
$value = kUtil::escape($value, kUtil::ESCAPE_HTML);
Event Timeline
Log In to Comment