-
Notifications
You must be signed in to change notification settings - Fork 36
Conversation
This patch eanble with a custom function to clean up the url from parameters: ```if (!function_exists('custom_validate_url')) { function custom_validate_url($uri) { $uri = str_replace('?enable-tideways', '', $uri); $uri = str_replace('%3Fenable-tideways', '', $uri); return $uri; } }```
you are modifying the also, do not add a global symbol. add config key with closure as a value, like |
Yes validating is not the better term, maybe is better like |
I gave you the hint. search that string through this project. |
Looking at https://github.com/perftools/xhgui-collector/search?q=profiler.enable&unscoped_q=profiler.enable the project is using the callback without sending to them any parameters. |
so, add the parameter you need... |
rewritten as anonymous function in the config array, let me know if now is good :-) |
the change is ok, but it should be somehow documented, perhaps add a working example to default config (return but looking at current defaults, how is your filter different from
|
I think the point here is to ensure that no sensitive data is saved and have control over how the replacements are done, e.g. ?api_token=1abc325&do_thing=thing1 -> ?api_token=XXXXXX&do_thing=thing1 . |
add documentation about this property into the default config, then it can be merged. I'd call the property |
I preferred a new function because on https://github.com/perftools/xhgui readme is explained that |
This patch eanble with a custom function in
config.php
to clean up the url from parameters: