Unable to edit in frontend [SYS SEF plg makes page white

More
14 years 1 week ago #21923 by ggppdk
Edit file:
plugins/system/sef.php

If i remember correctly the bug is in the regular expression that tries to make backgound image url to be sef url

Find and put in comments the lines
Code:
// Background image $regex = '#style\s*=\s*[\'\"](.*):\s*url\s*\([\'\"]?(?!/|'.$protocols.'|\#)([^\)\'\"]+)[\'\"]?\)#m'; $buffer = preg_replace($regex, 'style="$1: url(\''. $base .'$2$3\')', $buffer);

Test and report back

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
14 years 1 week ago #21940 by shultman
Hi!

Yepp, It works when I comment out those two lines of code. Can I saftley leave it like this? I searched the generated code and the background url's in there is from Docman links and a plug from ContactEnhenced to make a popup contact form.

Please Log in or Create an account to join the conversation.

More
14 years 1 week ago #21947 by ggppdk
I dont see why commenting these lines will cause a problem, since their purpose is to make urls of (some background? images) to be SEF like.

Also maybe we should file a joomla bug report for this, the behavior of the regular expression is clearly unwanted.

Maybe there is some broken html in you edit form which when combnined with the FLEXIaccess code this behavior occurs.
In my above sentence i mean something serious like an unclosed quote "

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save