Comments

bhavikshah9 created an issue. See original summary.

bhavikshah9’s picture

Status: Active » Needs review
StatusFileSize
new6.61 KB

Here is the patch.

richardp’s picture

Thank you-- This looks good to me, with one change:

I wanted to intentionally allow markup in the reminder msg that gets displayed in hook_init(), just in case some site admins want to be fancy with the message, display links to other pages, etc. Using check_plain() on it would strip any such HTML.

In the meantime, I'm afraid I don't have much time these days to tend to this project. Would you be interested in being made a co-maintainer?

Richard

bhavikshah9’s picture

Hi @richardp,

Thanks for prompt reply.
I have used check_plain() as a security aspect. But, your argument is valid. I will replace check_plain() with filter_xss_admin().

And yes, I would be glad to become co-maintainer.

bhavikshah9’s picture

Here is the patch.

richardp’s picture

Looks good to me. Please feel free to apply the patch and commit your changes whenever you like.
Richard

bhavikshah9’s picture

Hey @richardp,

I will keep it open as it for a week for community members to look into it.
Then, commit it.

joshi.rohit100’s picture

  1. +++ b/logintoboggan_reminder.module
    @@ -3,126 +3,107 @@
    +    "#default_value" => variable_get("logintoboggan_reminder_msg", check_plain($default_msg)), ¶
    

    extra white space

  2. +++ b/logintoboggan_reminder.module
    @@ -3,126 +3,107 @@
    +    "#options" => array(
    +      "status" => "status",
    +      "warning" => "warning",
    +      "error" => "error"
    

    shouldn't this be also wrapped in t() as its for UI ?

bhavikshah9’s picture

Hey @joshi.rohit100,

Thanks for the review. I don't know why my coder doesn't sniffed this.
I will update the new patch and interdiff soon.

bhavikshah9’s picture

Here is the updated patch with interdiff.

lomasr’s picture

StatusFileSize
new85.41 KB

Applied the patch , seems to have 'whitespace issues' . Please see the screenshot.

lomasr’s picture

I have tried to remove whitespaces. Please review the patch.

bhavikshah9’s picture

Hey @lomasr,

Thanks for the screenshot.
Yes. You are right about the warnings. I have got similar warnings while development. But, I didn't found any whitespace actually in code.
Have you found any whitespace actually within module file after apply the patch?
Or, can you please help me understand why it's showing warnings when there are no actual whitespace?

bhavikshah9’s picture

StatusFileSize
new17.07 KB

Hey @lomasr,

I have tried to apply your patch.
Unfortunately, it shows whitespace messages as well. In fact, patch failed to be applied. I have attached a screenshot.

I have no idea why such warnings comes up. This is something I have never faced.
I will keep this issue open for few more days for community members to comment/review.

lomasr’s picture

Hi , I like to maintain this module

gmaltoni’s picture

Issue tags: +#ciandt-contrib
StatusFileSize
new9.63 KB

Hi!

Just a few coding standards improvements.

I hope to help.

Thanks.

bhavikshah9’s picture

Hey @lomasr,

Thanks. But, this module is not actively maintained.

faline’s picture

Status: Needs review » Reviewed & tested by the community

I've applied the patch #16 and it is working for me, with no warning.

lomasr’s picture

Hi, thanks. In this case who is going to commit and close this issue? , Not sure.

richardp’s picture

lomsar, I have added you as a maintainer. Please feel free to commit and close the issue as you see fit.

Thanks,
Richard

lomasr’s picture

Thanks Richard.

  • lomasr committed 6b52543 on 7.x-1.x authored by gmaltoni
    Issue #2837985 by bhavikshah9, lomasr, gmaltoni, richardp, joshi....
lomasr’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.