ms-afk
5986dc9a08
fixed rare double execution of rewrite routes in exception handler
...
If a rewrite route is present, Router's method handleException will, currently, be adding that route to the processedRoutes array without removing the hasPendingRewrite flag. This leads to the associated callback being executed twice if the callback itself returns NULL. This happens because the handleRouteRewrite method, finding that hasPendingRewrite is still set to true, adds the rewriteRoute to the processedRoutes for a second time, before finally setting that flag to false.
2023-10-03 12:26:41 +02:00
sessingo
d3b1577095
RouteResource: simplified the findUrl method (issue: #666 )
2023-05-06 21:07:58 +02:00
Simon Sessingø
00d1c534de
Merge pull request #667 from skipperbent/fix-resource-parameters
...
Resource-type not respecting parameters when using getUrl (issue: #666 )
2023-05-06 17:33:53 +02:00
Simon Sessingø
37f826f24c
Merge pull request #664 from SunflowerFuchs/v5-development
...
Fixed Route::setUrl() behavior
2023-05-06 17:32:57 +02:00
sessingo
f3c6015a59
Fixed Resource-type not respecting parameters when using getUrl (issue: #666 )
2023-05-06 17:29:33 +02:00
Pascal Pirschel
b2851e41f1
Fixed Route::setUrl() behavior
...
When there are no parameters in the url, correctly empty the routes parameter array
2023-05-05 13:48:26 +02:00
sessingo
e105f266e3
Fixed typo
2023-04-24 20:05:33 +02:00
sessingo
a49d7c13b6
Reverted exception handling to old behavior (issue: #660 )
2023-04-24 20:03:15 +02:00
sessingo
4778a8f29e
InputItem: php8.1 deprecated warning-Added returnTypeWillChange to offsetGet
2023-04-21 11:28:19 +02:00
Simon Sessingø
2b4ae2b211
Merge pull request #654 from skipperbent/v5-exception-handling
...
PHP8: better exception handling
2023-04-08 19:56:55 +02:00
sessingo
fa05d64a76
PHP8: better exception handling
...
Looks like PHP8 handles exceptions differently with Throwables used in cases where php-error occoured.
To fix this Throwable are now used to catch exception in routeRequest and any instance of Throwable will be converted to Exception.
2023-04-08 19:49:51 +02:00
Simon Sessingø
5ac747374b
Merge pull request #652 from skipperbent/fix-tostring
...
[BUGFIX] String return type
2023-04-07 15:38:41 +02:00
sessingo
d6642a7f7b
Changed behavior of router to always exspect returned output to be string.
2023-04-07 15:30:24 +02:00
Simon Sessingø
ebf9224407
Merge pull request #649 from skipperbent/feature-csrfverifier
...
[!!!] CsrfVerifier changes
2023-04-07 14:36:13 +02:00
Simon Sessingø
c635771fcd
Merge pull request #650 from skipperbent/v5-fix-exception
...
[BUGFIX] Exception handling improvements
2023-04-07 14:35:56 +02:00
sessingo
791d69b24d
Updated documentation
2023-04-07 13:08:40 +02:00
sessingo
aa654a3ac6
[BUGFIX] Fixed exception-handler rewrite not always triggered
2023-04-07 13:05:27 +02:00
sessingo
6c6d81d3c9
[!!!] CsrfVerifier changes
...
- [!!!] Made $except and $include array not nullable.
- Added more customizable BaseCsrfVerifier. Can now be used as ticket for no hotlinking etc.
2023-04-06 13:09:26 +02:00
sessingo
8c79b74e14
Bugfixes
2023-04-02 03:22:38 +02:00
Simon Sessingø
77da37e00e
Merge pull request #644 from skipperbent/v5-property-types
...
[!!!] Added type definitions to property types
2023-04-02 03:14:50 +02:00
sessingo
5946397c15
[!!!] Added type definitions to property types
...
- Request: optimized getIp method and reversed the order so proxy is always checked first.
2023-04-02 03:10:27 +02:00
Simon Sessingø
dc3b1fe74e
Merge pull request #641 from skipperbent/fix-session
...
[BUGFIX] Fixed SESSION not shutdown correctly when using redirect.
2023-03-30 16:21:04 +02:00
sessingo
c622ef97b0
[BUGFIX] Fixed SESSION not shutdown correctly when using redirect.
...
- Disabled multiple route rendering by default.
2023-03-30 16:15:06 +02:00
Simon Sessingø
8be42ca1a6
Merge pull request #638 from skipperbent/v5-feature-ending-slash
...
[FEATURE] Parameter ending trail/slash
2023-03-25 03:13:28 +01:00
sessingo
4a7360909c
Fixed for PHP7
2023-03-25 02:24:19 +01:00
sessingo
74c52931e9
Ending trail/slash feature
...
- Feature: added support for slash in parameters (see readme).
- Route: Fixed hardcoded param modifier.
- Route: optimisations.
- Updated Readme.
2023-03-25 02:20:06 +01:00
sessingo
5ab5087f8e
Fixed CSRF-token not triggering exception handlers.
2023-02-13 13:59:49 +01:00
sessingo
b7c1b52a57
Updated phpstan
2023-02-12 23:39:49 +01:00
sessingo
941149d8d7
Fixed deprication warnings
2023-02-11 17:31:00 +01:00
sessingo
1764b67112
Updated composer.json
2023-02-11 17:25:54 +01:00
sessingo
3742998537
Updated git workflows
2023-02-11 17:22:40 +01:00
sessingo
20e00efbed
Php8 deprication warning
2023-02-11 17:16:40 +01:00
sessingo
7dd176a771
Fixed strtolower php8 deprication warning
2023-02-10 22:47:45 +01:00
sessingo
abda9d468b
Fixed deprication message when using response()->json
2023-02-10 08:48:58 +01:00
sessingo
23a29ce5d1
Fixed php strtolower deprication warning
2023-02-10 06:10:29 +01:00
sessingo
e34fe47a04
Fixed offsetGet return type deprication warning
2023-02-09 03:29:41 +01:00
sessingo
f0a4b6e46f
Updated composer
2023-02-09 03:01:17 +01:00
Simon Sessingø
e38a406957
Merge pull request #594 from redoonetworks/dymanic-domain
...
Dynamic domain, fixed Subdomain
2023-02-09 02:32:18 +01:00
Simon Sessingø
b82e29c864
Merge pull request #614 from DeveloperMarius/non-ascii-chars-urlencoding
...
urlencoding issue with non-ASCII chars in request-uri header
2023-02-09 02:29:25 +01:00
Simon Sessingø
9c79901316
Merge pull request #604 from xJuvi/xJuvi-patch-1
...
Make current processing rule accessible
2023-02-09 02:28:34 +01:00
Simon Sessingø
fbc87cc9bd
Merge pull request #589 from mauroagr/patch-1
...
Update in error status code
2023-02-09 02:26:36 +01:00
DeveloperMarius
301c2cfe4a
fixed urldecode request-uri header
2022-03-01 15:39:31 +01:00
Hannes
01bad94af0
Update Router.php
2022-02-02 15:20:23 +01:00
Hannes
a1d5f38af7
Add function to fetch currect processing route
2022-01-02 21:59:39 +01:00
Hannes
b5e42dbdfb
Make current processing rule accessible
...
Adds an constant with the data from the current processing rule to make it globally accessible, f.e. in middleware objects
2022-01-02 14:42:43 +01:00
Stefan Warnat
06a63eb0e7
Fix Typo
2021-10-04 02:02:45 +02:00
Stefan Warnat
5268a998ff
Extend domain filter to support fixed subdomain and domain parameter
2021-10-04 01:49:42 +02:00
Stefan Warnat
9fa7ad3e91
implement test Function to test output without reset
2021-10-04 01:49:00 +02:00
Mauro Tschiedel
0097725ef2
Update in error status code
...
Add example If you will add specific status code for the browser
2021-09-01 08:22:12 -03:00
Simon Sessingø
749f252ffb
Merge pull request #584 from skipperbent/v4-release
...
V4 release
5.0.0.0
2021-07-18 01:45:46 +02:00