mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
- Added check for malformed class::method syntax
This commit is contained in:
parent
b133dbefe0
commit
2e14649c92
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ int phpdbg_is_class_method(const char *str, size_t len, char **class, char **met
|
|||
const char *sep = strstr(str, "::");
|
||||
size_t class_len, method_len;
|
||||
|
||||
if (!sep) {
|
||||
if (!sep || sep == str || sep+2 == str+len-1) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue