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: uninitialized value #6912

Merged
merged 3 commits into from
Jun 22, 2022
Merged

fix: uninitialized value #6912

merged 3 commits into from
Jun 22, 2022

Conversation

dipietroR
Copy link
Contributor

Add conditional as without it this will make a dead link resulting in a 404

It is not clear to me what the link in this section does and it is not visible on the page. It may be used for search engines?
If $request_ref->{current_link_query_display} isn't defined, and we select the link in the source, it leads to a 404. As it stands without that defined it appears to be broken, though I'm not certain that we don't want this information here even with a dead link. Perhaps we want something more like $request_ref->{current_link}?

@dipietroR dipietroR requested a review from a team as a code owner June 15, 2022 22:57
@stephanegigandet
Copy link
Contributor

This code was to have a special share button on some browsers, it was a feature @hangy added 6 years ago.
See: #558

On Android on Chrome, it displays a "Share" button at the bottom of the screen.

We should fix the link though. It would be good to add some comments so that we remember what it is, I had completely forgotten about it.

image

Add conditional as without it this will make a dead link resulting in a
404
@dipietroR dipietroR force-pushed the uninitialized-value branch from 4f2e51b to 401e232 Compare June 16, 2022 15:42
@dipietroR
Copy link
Contributor Author

OK, this should give the code a functional link. Does this seem right to you?

@stephanegigandet
Copy link
Contributor

OK, this should give the code a functional link. Does this seem right to you?

Yes, definitely!

cgi/search.pl Outdated Show resolved Hide resolved
cgi/search.pl Outdated Show resolved Hide resolved
Copy link
Contributor

@stephanegigandet stephanegigandet left a comment

Choose a reason for hiding this comment

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

Thanks!

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@stephanegigandet stephanegigandet merged commit 9f4c5ea into main Jun 22, 2022
@stephanegigandet stephanegigandet deleted the uninitialized-value branch June 22, 2022 08:15
astagi added a commit that referenced this pull request Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants