Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: BUG 131913 stop losing the filter text when filtering the test history #2952

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

alectejada
Copy link
Contributor

this change will prevent losing the text the user has on the text input when filtering the test history, it does so by making sure we keep it on the url query

* fix: BUG 131913 submit form when changing filter date and populate input value
@alectejada alectejada added the Type: Bug An issue or pull request relating to a bug in WebPageTest label Jul 19, 2023
@alectejada alectejada self-assigned this Jul 19, 2023
@@ -52,7 +55,7 @@
'local' => isset($_REQUEST['local']) && $_REQUEST['local'],
'body_class' => 'history',
'page_title' => 'WebPageTest - Test History',

'filter' => $filterstr
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know you have the regex above, but I'd just use htmlspecialchars() https://www.php.net/htmlspecialchars

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey jeff since its being rendered on a blade template it should be going through this function already, should we add anyway?

image

https://laravel.com/docs/10.x/blade

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh that's right! nice catch. spaced the whole "this is on blade" thing.

@mjkozicki mjkozicki merged commit 641aeba into master Jul 24, 2023
1 check passed
@mjkozicki mjkozicki deleted the B131913 branch July 24, 2023 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug An issue or pull request relating to a bug in WebPageTest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants