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 Apply fixes from StyleCI 2021-08-21 14:49:40 +00:00
Entity Added filter for xlink:href svg xss 2021-09-03 22:34:49 +01:00
Permissions Added role based MFA control 2021-07-03 13:34:48 +01:00
Settings Fixed issue with HTML tags in custom head scripts 2021-09-05 23:52:39 +01:00
test-data Moved sketchy file samples to base64 equivilents 2021-02-06 00:16:27 +00:00
Unit Added untrusted server fetching control 2021-08-31 20:22:42 +01:00
Uploads Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
User Merge branch 'v21.05.x' 2021-08-04 21:32:29 +01:00
ActivityTrackingTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
AuditLogTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
BrowserKitTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
CreatesApplication.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
ErrorTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
FavouriteTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
HomepageTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
LanguageTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
OpenGraphTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
PublicActionTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
RecycleBinTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
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 Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
TestCase.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
TestEmailTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
TestResponse.php Covered TOTP setup with testing 2021-07-02 19:51:30 +01:00
ThemeTest.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00