fix: address code review feedback (comment clarity, remove redundant static array, add CSS class)
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/86bb1e0e-2bbd-439b-88cd-7a624ad24761 Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
5c463d381f
commit
d0c86926bd
3 changed files with 2 additions and 9 deletions
|
|
@ -76,6 +76,7 @@ class rss_php {
|
|||
$rss = ltrim($rss);
|
||||
|
||||
// Reject obviously non-XML content early to avoid noisy libxml warnings.
|
||||
// Minimum well-formed XML is at least "<a/>" (4 bytes); require one more.
|
||||
if(strlen($rss) < 5 || $rss[0] !== '<') {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue