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

Proposed fixes to sitemap.php #39

Closed
wants to merge 1 commit into from
Closed

Proposed fixes to sitemap.php #39

wants to merge 1 commit into from

Conversation

ddrury
Copy link
Contributor

@ddrury ddrury commented Nov 19, 2013

  1. Explicitly set the action parameter for the form. (fixes Bug #1252278)
  2. WT_Filter::postBool returns null if the posted variable doesn't exist (maybe use FILTER_NULL_ON_FAILURE flag?) which is the case if the checkbox is unchecked. This then means that WT::Tree->preference does a get not a set.
  3. When setting a gedcom preference, although the database is updated the cached value isn't

1. Explicitly set the action parameter for the form.
2. WT_Filter::postBool returns null if the posted variable doesn't exist
(maybe use FILTER_NULL_ON_FAILURE flag?) which is the case if the
checkbox is unchecked. This then means that WT::Tree->preference does a
get not a set.
3. When setting a gedcom preference, although the database is updated
the cached value isn't
@fisharebest
Copy link
Owner

It is probably better to change WT_Filter::postBool() to return a boolean - to match the function that it replaced.

The fix for 1252278 looks good.

I'm not sure we need to add the HTML entities to the URL. We already encode it (rawurlencode) and pass this as a (single) parameter to the google/bing submission formts. Am I missing something?

@ddrury ddrury deleted the Sitemap-errors branch November 24, 2013 22:41
@kexuebin kexuebin mentioned this pull request May 20, 2019
@ricklach ricklach mentioned this pull request Jul 11, 2019
@makitso makitso mentioned this pull request Aug 11, 2019
@ramu98 ramu98 mentioned this pull request Apr 7, 2020
@ghost ghost mentioned this pull request Aug 9, 2020
@webtrees-pesz webtrees-pesz mentioned this pull request Aug 18, 2023
@makitso makitso mentioned this pull request Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants