Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F5314901
D26072.1749961021.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
D26072.1749961021.diff
View Options
diff --git a/src/future/http/HTTPSFuture.php b/src/future/http/HTTPSFuture.php
--- a/src/future/http/HTTPSFuture.php
+++ b/src/future/http/HTTPSFuture.php
@@ -753,14 +753,7 @@
Filesystem::writeFile($tmp, $info['data']);
$this->temporaryFiles[] = $tmp;
- // In 5.5.0 and later, we can use CURLFile. Prior to that, we have to
- // use this "@" stuff.
-
- if (class_exists('CURLFile', false)) {
- $file_value = new CURLFile((string)$tmp, $info['mime'], $info['name']);
- } else {
- $file_value = '@'.(string)$tmp;
- }
+ $file_value = new CURLFile((string)$tmp, $info['mime'], $info['name']);
$data[$name] = $file_value;
}
@@ -784,18 +777,6 @@
}
if ($is_query_string) {
- if (version_compare(phpversion(), '5.2.0', '<')) {
- throw new Exception(
- pht(
- 'Attempting to make an HTTP request, but query string data begins '.
- 'with "%s". Prior to PHP 5.2.0 this reads files off disk, which '.
- 'creates a wide attack window for security vulnerabilities. '.
- 'Upgrade PHP or avoid making cURL requests which begin with "%s".',
- '@',
- '@'));
- }
-
- // This is safe if we're on PHP 5.2.0 or newer.
return;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jun 15, 04:17 (7 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1855633
Default Alt Text
D26072.1749961021.diff (1 KB)
Attached To
Mode
D26072: Remove old PHP5 code from HTTPSFuture
Attached
Detach File
Event Timeline
Log In to Comment