The problem is that QString("").startsWith("") returns false.
Similarly, QString("").endsWith("") also returns false.
However, the code previously was assuming that both cases return true.
This is now fixed, and verified through unit tests.
BUG: 381080
This deprecates patch D6473