Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F5311739
D26077.1749954861.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
482 B
Referenced Files
None
Subscribers
None
D26077.1749954861.diff
View Options
diff --git a/src/aphront/AphrontRequest.php b/src/aphront/AphrontRequest.php
--- a/src/aphront/AphrontRequest.php
+++ b/src/aphront/AphrontRequest.php
@@ -211,7 +211,7 @@
*/
public function getStr($name, $default = null) {
if (isset($this->requestData[$name])) {
- $str = (string)$this->requestData[$name];
+ $str = phutil_string_cast($this->requestData[$name]);
// Normalize newline craziness.
$str = str_replace(
array("\r\n", "\r"),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jun 15, 02:34 (5 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1829698
Default Alt Text
D26077.1749954861.diff (482 B)
Attached To
Mode
D26077: Fail more gracefully passing an array to AphrontRequest::getStr()
Attached
Detach File
Event Timeline
Log In to Comment