BookStack/tests
Dan Brown 88c698796b
Fixed issue with HTML tags in custom head scripts
Fixes a strange issue of HTML tags within script tags being malformed
when part of the HTML custom head content due to the PHP parsing we do.
DOMDocument seemed to cause this upon load.
Adding LIBXML_SCHEMA_CREATE to the ->loadHTML call seems to fix this but
not really sure why. Doesn't seem to cause further issues though.
Tested with multiple scripts and styles and comments and meta tags.

- Also added new testing class to cover.
- As part of testing, added new folder within tests to house setting
  specific tests.

For #2914
2021-09-05 23:52:39 +01:00
..
Api Finished off script CSP rules 2021-09-04 13:57:04 +01:00
Auth Made the TOTP URL visible during setup 2021-09-01 20:58:19 +01:00
Commands
Entity Added filter for xlink:href svg xss 2021-09-03 22:34:49 +01:00
Permissions
Settings Fixed issue with HTML tags in custom head scripts 2021-09-05 23:52:39 +01:00
test-data
Unit Added untrusted server fetching control 2021-08-31 20:22:42 +01:00
Uploads
User
ActivityTrackingTest.php
AuditLogTest.php
BrowserKitTest.php
CreatesApplication.php
ErrorTest.php
FavouriteTest.php
HomepageTest.php
LanguageTest.php
OpenGraphTest.php
PublicActionTest.php
RecycleBinTest.php
SecurityHeaderTest.php Added a couple of additional CSP rules 2021-09-04 14:34:43 +01:00
SharedTestHelpers.php Added role permissions for exporting content 2021-08-28 21:48:17 +01:00
StatusTest.php
TestCase.php
TestEmailTest.php
TestResponse.php
ThemeTest.php