mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
PHP SSR: EA-56386 (SIOOBE: GlobalCompilingVisitor.processPatternStringWithFragments)
This commit is contained in:
+4
-2
@@ -480,8 +480,10 @@ public abstract class StructuralSearchProfileBase extends StructuralSearchProfil
|
||||
private void visitLiteral(PsiElement literal) {
|
||||
String value = literal.getText();
|
||||
|
||||
if (value.length() > 2 &&
|
||||
(value.charAt(0) == '"' && value.charAt(value.length() - 1) == '"') ||
|
||||
if (value.length() <= 2) {
|
||||
return;
|
||||
}
|
||||
if ((value.charAt(0) == '"' && value.charAt(value.length() - 1) == '"') ||
|
||||
(value.charAt(0) == '\'' && value.charAt(value.length() - 1) == '\'')) {
|
||||
|
||||
if (mySubstitutionPatterns == null) {
|
||||
|
||||
Reference in New Issue
Block a user