Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
the title of my node used for the terms of use is « Conditions d'utilisation ». On the «accept modification» page, the « ' » came out like this : d'Utilisation
.
Is there a way to correct this?
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#3 | Before.png | 44.14 KB | Dev1.addweb |
#3 | After.png | 39.88 KB | Dev1.addweb |
#3 | apostrophe-2282121-3.patch | 523 bytes | Dev1.addweb |
|
Comments
Comment #1
bisonbleu CreditAttribution: bisonbleu commentedSame issue.
Comment #2
iva2k CreditAttribution: iva2k commentedOf course it can be fixed... if someone provides a patch. I'm tied up in too many projects now and won't have bandwidth any time soon.
Comment #3
Dev1.addweb CreditAttribution: Dev1.addweb at AddWeb Solution Pvt. Ltd. commentedPFA patch and screenshots with Before and after proof.
Comment #4
Dev1.addweb CreditAttribution: Dev1.addweb at AddWeb Solution Pvt. Ltd. commentedComment #5
iva2k CreditAttribution: iva2k commentedI'm afraid it will not pass Drupal security audit.
Comment #6
bisonbleu CreditAttribution: bisonbleu commented@iva2k, although you are right in thinking that check_plain is a security requirement (my initial thought), I believe @Deepali_Agarwal's patch is perfectly sound and the proper fix in the current context.
Explanation: as the api suggests, check_plain is not needed in the current context because drupal_set_title also uses check_plain. So site_disclaimer_confirm (below) is currently double-encoding the title.
Changing the title assignment to the following fixes this issue ans is secure.
$title = variable_get('site_disclaimer_title', SITE_DISCLAIMER_DEFAULT_TITLE);
Comment #7
Dev1.addweb CreditAttribution: Dev1.addweb at AddWeb Solution Pvt. Ltd. commentedThanks for confirmation @bisonbleu.
@Scott: Can you please take a pull and commit the patch contributed. Would be awaiting for the credit.
Comment #8
Dev1.addweb CreditAttribution: Dev1.addweb at AddWeb Solution Pvt. Ltd. commentedComment #10
Scott Robertson CreditAttribution: Scott Robertson commented