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

#26 filter: Fixed bug and heavy refactoring. #29

Open
wants to merge 5 commits into
base: 1.2.x
Choose a base branch
from

Conversation

Alfro
Copy link
Contributor

@Alfro Alfro commented Jul 14, 2016

The code was difficult to handle, so I had to refactor it in order to fix the bug properly.

Alfro added 2 commits July 14, 2016 13:41
The previous commit did not actually 'fix' the bug. My assumptions on how 'preg_replace_callback' worked were wrong.
The refactoring was nice though, so I am keeping it.
The bug was an issue with having some hyperlinks inside other hyperlinks, which didn't work well with the regex in charge to add the iframes.
I added a function to fix that first (adding <a> and </a> ala browser parser) and THEN do the usual replacing.
 Conflicts:
	Resources/data/pumoodle/filter/pumukit/filter.php

The conflict was caused by 00b9b18, task #11857
Changed iframe width/height according to commit.
@Alfro
Copy link
Contributor Author

Alfro commented Jan 26, 2017

@rubenrua Is this still relevant?

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.

3 participants