Markup/Misc

* fixed ajax fulltext sanitizer eating \s instead of \n after 57864d2544
 * happy new year
This commit is contained in:
Sarjuuk
2022-01-06 14:17:27 +01:00
parent dcb8995b1a
commit 541224f87b
2 changed files with 2 additions and 2 deletions

View File

@@ -113,7 +113,7 @@ class AjaxHandler
protected static function checkFulltext(string $val) : string protected static function checkFulltext(string $val) : string
{ {
// trim non-printable chars // trim non-printable chars
return preg_replace('/[\p{Cf} \p{Co} \p{Cs} \p{Cn}]/ui', '', $val); return preg_replace('/[\p{Cf}\p{Co}\p{Cs}\p{Cn}]/ui', '', $val);
} }
} }
?> ?>

View File

@@ -85,7 +85,7 @@ endif;
<a href="?aboutus"><?=Lang::main('aboutUs'); ?></a>|<a href="https://github.com/Sarjuuk/aowow" target="_blank">Github</a>|<a href="#" id="footer-links-language"><?=Lang::main('language'); ?></a> <a href="?aboutus"><?=Lang::main('aboutUs'); ?></a>|<a href="https://github.com/Sarjuuk/aowow" target="_blank">Github</a>|<a href="#" id="footer-links-language"><?=Lang::main('language'); ?></a>
</div> </div>
<div class="footer-copy"> <div class="footer-copy">
&#12484; 2021 Aowow<br />rev. <?=AOWOW_REVISION; ?> &#12484; 2022 Aowow<br />rev. <?=AOWOW_REVISION; ?>
</div> </div>
</div> </div>