Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2680691
D25557.1734613790.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
464 B
Referenced Files
None
Subscribers
None
D25557.1734613790.diff
View Options
diff --git a/src/utils/PhutilSortVector.php b/src/utils/PhutilSortVector.php
--- a/src/utils/PhutilSortVector.php
+++ b/src/utils/PhutilSortVector.php
@@ -30,7 +30,7 @@
}
public function addString($value) {
- if (strlen($value) && (strpos("\0", $value) !== false)) {
+ if (strlen($value) && (strpos($value, "\0") !== false)) {
throw new Exception(
pht(
'String components of a sort vector must not contain NULL bytes.'));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 13:09 (20 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015071
Default Alt Text
D25557.1734613790.diff (464 B)
Attached To
Mode
D25557: Fix "strpos(): Non-string needles will be interpreted as strings" in PhutilSortVector
Attached
Detach File
Event Timeline
Log In to Comment