Skip to content

Conversation

@lacatoire
Copy link
Contributor

Summary

  • Replaces empty() checks with === "" for sdesc and ldesc in Index.php
  • Both values are always initialized as "" in storeInfo() (line 213-214) and populated via htmlentities(trim(...)), so they are always strings — empty() is overly broad and would incorrectly treat a legitimate "0" as empty
  • The third occurrence in Package/PEAR/Web.php mentioned in the issue was already removed in commit 53f9afe

Fixes #158

…c/ldesc

Both sdesc and ldesc are always initialized as "" in storeInfo() and
populated with htmlentities(trim(...)) results, so they are always
strings. Using empty() is overly broad here since it would also treat
a legitimate "0" value as empty. Replace with === "" for precision.

The third occurrence in Package/PEAR/Web.php was already removed in
commit 53f9afe.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Review and potentially replace empty() checks for sdesc and ldesc

1 participant