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

Fatal Error with no until rule using SG_iCal_Freq->getNext #11

Open
buggedcom opened this issue Aug 2, 2012 · 3 comments
Open

Fatal Error with no until rule using SG_iCal_Freq->getNext #11

buggedcom opened this issue Aug 2, 2012 · 3 comments

Comments

@buggedcom
Copy link

If the event is repetative but contains no until rule, SG_iCal_Freq::getNext runs endlessly. I suggest putting a limit in place to counter such events causing out of memory errors

@nicoladj77
Copy link

I have exactly the same problem, did you find a fix for it?

@yani-
Copy link

yani- commented Nov 13, 2012

I am looking for a fix too.

@buggedcom
Copy link
Author

Yes, however you don't need it if you set an "until" rule. However the patch is as follows

//      impose a upper ceiling.
        if(isset($this->rules['until']) === false)
        {
            $this->rules['until'] = $start + 315360000;
        }

Add the above to line# 100 in SG_iCal_Freq.php. It basically sets a hard upper limit of 10 years if the "until" rule is not set.

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

No branches or pull requests

3 participants