Denis Sokolov
322f70cc22
feat: add pathMappings
2026-11-01 12:00:00 +00:00
Felipe Sayão Lobato Abreu
a9d6d08b0b
fix: skip source reads for native virtual filenames
...
Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com >
2026-10-17 17:13:43 -03:00
DualFroz
5805bc7620
Stop output buffer cleanup at buffers that cannot be removed
...
zlib.output_compression makes its buffer non-removable once it has sent
compressed output, so ob_end_clean() raised a notice that replaced the
original exception. Fixes #704 .
2026-10-02 16:11:20 +02:00
Denis Sokolov
baec851ad6
Escape some HTML values that were not escaped
2026-09-18 12:00:00 +00:00
DualFroz
b6b679db7d
fix(template-helper): restrict escapeButPreserveUris to http/https schemes
...
escapeButPreserveUris() matched any scheme via [A-z]+?://, which also
turns javascript://, vbscript:// and data:// URIs into clickable links
on the generated error page, allowing script execution on click (XSS).
The [A-z] class was also invalid, spanning extra ASCII punctuation.
Restrict the scheme to http/https, the only two schemes that make
sense to linkify on an error page, leaving other schemes as plain
escaped text.
2026-09-04 22:16:53 +02:00
chris
14433ed475
Update tests/Whoops/TestCase.php
...
Co-authored-by: Denis Sokolov <denis@sokolov.cc >
2025-11-25 22:05:04 +01:00
Christopher Georg
bdfbc337f3
ci: Add PHP version 8.5 to CI workflow
2025-11-25 20:36:46 +01:00
Denis Sokolov
db0f04fc8a
Add a test for not registered on shutdown
2025-06-16 12:00:00 +00:00
Denis Sokolov
51afe14e35
RunTest: clean whitespace
2025-06-16 12:00:00 +00:00
Shakir El Amrani
30fa50c046
feat: support frame filters
2023-02-19 15:09:19 +00:00
Denis Sokolov
9695df05dc
tests: minor changes in exception null values
2021-09-19 12:00:00 +00:00
Dan Wallis
26c4ca5eb7
Fix tests
2021-04-14 22:48:03 +01:00
Dan Wallis
04116f5017
Avoid redirects away from error page
2021-04-14 22:14:24 +01:00
Lode Claassen
051070dddb
allow to customize the exit code send in cli context
2021-03-19 16:38:24 +01:00
Gwilyn
5ea44736b8
Update tests for self-returns.
2021-03-16 11:12:16 +10:30
Graham Campbell
e82fa73c0e
Fixed tests
2020-10-09 23:44:52 +01:00
Denis Sokolov
48810fbdb5
removeFirstHandler and removeLastHandler
2019-12-29 12:00:00 +02:00
Denis Sokolov
f2eb7d6d42
appendHandler and prependHandler
2019-12-25 12:00:00 +02:00
Denis Sokolov
8957f6fb70
Revert "feat!: add append and prepend handler instead of reverse execution"
...
This reverts commit f41c4a2a5a .
2019-12-25 12:00:00 +02:00
Jeroen Derks
9ea1027d37
updated line numbers in PlainTextHandlerTest to handle added lines
2019-06-26 07:45:46 +02:00
Markus Staab
3eb5a59ebd
tests: Make sure we close all output-buffer we started beforehand
2019-06-24 16:00:23 +02:00
Thomas Flori
f41c4a2a5a
feat!: add append and prepend handler instead of reverse execution
...
BREAKING CHANGE: since "pushHandler()" was actually prepending handlers
it is now an alias for prependHandler but "popHandler()" is still
removing the last handler.
2019-06-22 08:59:57 +02:00
Denis Sokolov
96b5407262
Merge pull request #609 from tflori/plaintext-previous
...
add previous exception messages to plain text output
2019-06-21 12:24:50 +03:00
Denis Sokolov
8f86efb991
Merge pull request #568 from gms8994/allow-copy-paste-of-paths
...
Switch from div to span to allow copy and paste
2019-06-21 12:03:01 +03:00
Thomas Flori
54bf2dfdd0
suggested changes for previous output in plaintext handler
2018-12-03 10:18:07 +01:00
Thomas Flori
88b9298110
add previous exception messages to plain text output
...
Can be disabled via `PlainTextHandler::addPreviousToOutput(false)` and
adds lines between the exception and the trace containing the exception
and line of creator.
The method `Inspector::getFrames()` already appends all frames from the
previous exceptions. So there is no need in adding the trace for each
previous exception.
IMO the test tests something that it should not test: the output of the
line number. But that should be in a separate PR. I've at least added
constants for the line numbers so that you only have to change them once
for all tests.
2018-12-03 08:24:44 +01:00
SilverFire - Dmitry Naumenko
fd596a0b39
Added tests
2018-10-22 16:10:42 +03:00
Florian Orben
352cba6165
Display messages from previous exceptions
...
This will add the messages of previous exceptions
to the pretty page handler's exception-message area
2018-10-20 18:10:02 +02:00
Gregor Harlan
e730eb22af
editor callback: allow to return empty value
2018-06-30 13:56:13 +02:00
Glendon Solsberry
9b40477a11
Switch from div to span to allow copy and paste
2018-03-08 09:10:39 -05:00
Gabriel Caruso
891f80083d
Refactoring tests
2017-12-12 03:01:58 -02:00
Markus Staab
86eee8872b
use a closure instead of create_function().
2017-12-01 10:14:41 +01:00
Denis Sokolov
80e1be87b6
Merge pull request #528 from MarioBlazek/phpunit_forward_compatibility_layer
...
Use namespaced version of PHPUnit's TestCase
2017-11-03 21:03:30 +02:00
Markus Staab
9e7c2ea58c
Prevent possible XSS via target="_blank" urls ( #533 )
2017-10-10 13:00:26 +03:00
Luis Henrique Mulinari
06bdb879d3
Fix some FQNs, typehints and unused code/vars
2017-10-09 22:25:27 +02:00
Mario Blažek
4028b3baf5
Use namespaced version of PHPUnit's TestCase
2017-09-29 09:41:54 +02:00
USAMI Kenta
7d7f8fef8e
Modify private method test using TestCase::callPrivateMethod()
2017-06-25 05:40:55 +09:00
USAMI Kenta
46db0f150d
Impl TestCase::callPrivateMethod()
2017-06-25 05:34:58 +09:00
USAMI Kenta
a9ca5d639a
Revert "fixup! Add Test for PlainTextHandler::dump()"
...
This reverts commit ee0e9c08d9 .
2017-06-25 05:33:41 +09:00
USAMI Kenta
ee0e9c08d9
fixup! Add Test for PlainTextHandler::dump()
2017-06-25 05:11:27 +09:00
USAMI Kenta
8504ebd760
Fix line numbers
2017-06-24 16:02:32 +09:00
USAMI Kenta
78f1da579d
Add Test for PlainTextHandler::dump()
2017-06-24 16:02:00 +09:00
Gregor Harlan
d2829561ca
allow to change the application root path
2017-02-18 13:47:11 +01:00
Luis Henrique Mulinari
f553230e79
Add some tests
2016-10-23 18:20:00 -02:00
Denis Sokolov
d251b2dc1e
Merge pull request #405 from shakhraj/inspector-in-data-table-callback
...
Pass Inspector into data table callbacks
2016-09-04 17:49:05 +03:00
kevin olson
7ddd294018
spaces removed and unused vars re-added
2016-09-04 01:08:40 -07:00
kevin olson
f2c034ce4c
Avoiding unused local variables
2016-09-03 23:57:50 -07:00
kevin olson
882d26344b
setJsonApi() in JsonResponseHandler to allow format compliant to json:api spec #443
2016-09-03 17:48:28 -07:00
Denis Sokolov
fcfe85f2f5
Merge pull request #428 from localheinz/fix/unused
...
Fix: Remove unused imports
2016-07-27 23:31:16 +03:00
Andreas Möller
c37aae68fe
Fix: Use short array syntax
2016-07-24 19:36:49 +02:00