ognarb added inline comments.
INLINE COMMENTS
> initialize.inc.php:12
> {
> - /* keep only the first block of proper characters */
> - $sane_pattern = "/^([[:alnum:]-_\.]+)/";
> - $input_matched = preg_match($sane_pattern, htmlentities($input_string),
> $matches);
> - if ($input_matched) {
> - return $matches[1];
> - } else {
> - return "";
> - }
> + if (is_null($input_string)) {
> + return "";
The original code didn't work for me with a recent php version
REPOSITORY
R184 Documentation Website (docs.kde.org)
REVISION DETAIL
https://phabricator.kde.org/D19291
To: ognarb, ltoscano, #documentation
Cc: kde-doc-english, gennad, skadinna