1 of 2
1
Critical Textile Plugin Update
Posted: 10 July 2008 11:14 AM   [ Ignore ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15831
Joined  06-03-2002

The Textile plugin has been updated today as it was discovered that Textile was undoing some protection ExpressionEngine makes to submitted data to prevent variable parsing in user-submitted content.  In certain circumstances this could result in PHP errors and broken content.  If you are using the Textile plugin, this is considered a critical and mandatory update.  Simply replace your existing Textile plugin with the version 1.1 (2.0.0 r2779).

Entry permalink

 Signature 
Profile
MSG
 
 
Posted: 10 July 2008 04:07 PM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  233
Joined  01-18-2006

I upgraded, but now, when I see a preview of the post in the control panel after publishing or updating, I see

</p>

at the end of each paragraph. The code that gets outputted on the site is still good; just the preview is affected. I’m using 1.6.3.

Image Attachments
textile.jpg
Click thumbnail to see full-size image
 Signature 

Eric Barstad
Shadow Box Creative Media Ltd.

EE Pro Network

Profile
 
 
Posted: 10 July 2008 04:14 PM   [ Ignore ]   [ # 2 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15831
Joined  06-03-2002

Try a fresh download, Eric, should fix that.

 Signature 
Profile
MSG
 
 
Posted: 10 July 2008 04:19 PM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  233
Joined  01-18-2006

Awesome, thanks!

 Signature 

Eric Barstad
Shadow Box Creative Media Ltd.

EE Pro Network

Profile
 
 
Posted: 10 July 2008 06:47 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  67
Joined  10-18-2002

I was a little confused by what looks like a retrograde version number. The version for the Textile plugin I had installed was 2.0 (2.0.0 r2779), and yours is version 1.1 (2.0.0 r2779). The difference is only one line and is clearly your security fix. Did you mean 2.1? Or maybe I got 2.0 from some other place (I can’t remember whether I downloaded from the official plugin list)??

Profile
 
 
Posted: 10 July 2008 08:13 PM   [ Ignore ]   [ # 5 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15831
Joined  06-03-2002

The version number used to be just 2.0.0 r2779 which was taken entirely from the version of Textile, not the plugin version, as we do not create or maintain that codebase.  This is the first time that the plugin’s code, which is just a gateway to Textile, has been significantly changed, so I decided to be more explicit in the versioning.  The plugin version is the first listed, and the parenthetic version is the version of Textile, i.e. EE Textile Plugin version 1.1, using Textile’s 2.0.0 r2779 codebase.

 Signature 
Profile
MSG
 
 
Posted: 11 July 2008 06:33 AM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  402
Joined  03-17-2006

Derek, I have a small request. Can we get a “Last Modified” date and time on the plugins, extensions, modules, and expansions? Seeing when it was first posted is great but “Date: Mar 09, 2004” makes it seem like it was the last time the plugin was updated. Just a suggestion. Thanks for the update.

Profile
 
 
Posted: 11 July 2008 10:34 AM   [ Ignore ]   [ # 7 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15831
Joined  06-03-2002

ignite, you’re making it too difficult for me!  (added)

 Signature 
Profile
MSG
 
 
Posted: 11 July 2008 10:39 AM   [ Ignore ]   [ # 8 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  402
Joined  03-17-2006

Wow, that was fast! Looks good! I like the “Published” label too. Thanks.

Profile
 
 
Posted: 11 July 2008 11:12 AM   [ Ignore ]   [ # 9 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1728
Joined  03-26-2006

For the record I love the “Last Updated” addition. Thanks for this.

 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 12 July 2008 02:12 PM   [ Ignore ]   [ # 10 ]  
Grad Student
Rank
Total Posts:  65
Joined  06-06-2007

Upgrading stopped other plugins from working. The read file plugin and image rotator tags now show as plain text. Help!

{exp:read_file}

Profile
 
 
Posted: 12 July 2008 02:15 PM   [ Ignore ]   [ # 11 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15831
Joined  06-03-2002

Share your code, please, Turkish?

 Signature 
Profile
MSG
 
 
Posted: 12 July 2008 02:51 PM   [ Ignore ]   [ # 12 ]  
Grad Student
Rank
Total Posts:  65
Joined  06-06-2007

Example…

=={exp:read_file file="/home/path/file.txt" html="yes"}==

The equals signs are to stop textile converting the quotes. Basically tell Textile it’s RAW HTML.

Profile
 
 
Posted: 12 July 2008 03:21 PM   [ Ignore ]   [ # 13 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15831
Joined  06-03-2002

Yes, but where are you putting this?  In an entry?  A template?  Is it inside a Textile plugin tag?  What’s the full context, Turkish Baker?

 Signature 
Profile
MSG
 
 
Posted: 12 July 2008 04:44 PM   [ Ignore ]   [ # 14 ]  
Grad Student
Rank
Total Posts:  65
Joined  06-06-2007

A weblog entry field with the formatting type set to Textile.

Profile
 
 
Posted: 12 July 2008 05:40 PM   [ Ignore ]   [ # 15 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15831
Joined  06-03-2002

That’s what I suspected, but I did not want to make assumptions.  That’s precisely the type of thing this fix is intended to disallow.  EE tags are not parsed in entry content.  There is a plugin you could use in your template “Allow EE Code” which will bypass this restriction if your site has only trusted authors publishing content.

 Signature 
Profile
MSG
 
 
Posted: 15 July 2008 08:13 AM   [ Ignore ]   [ # 16 ]  
Summer Student
Total Posts:  14
Joined  05-21-2008

Hello Derek,

I try :
 

{exp:textile}{exp:allow_eecode}{CF_BODY}{/exp:allow_eecode}{/exp:textile}

and
 

{exp:allow_eecode}{exp:textile}{CF_BODY}{/exp:textile}{/exp:allow_eecode}

but I still cannot use {site_url} (for example) in my weblog entries ({CF_BODY} is a custom field).

Any ideas?

I thought to reinstall with the old textile plugin, but I’ll overwrite it with the newest release!

Profile
 
 
Posted: 15 July 2008 09:14 AM   [ Ignore ]   [ # 17 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15831
Joined  06-03-2002

Fabrice, thank you, that’s actually a bug in the Allow EE Code plugin which I’ve fixed.  Download the latest version and you should not have any problems.  Your second syntax is the correct one, incidentally.

 Signature 
Profile
MSG
 
 
Posted: 16 July 2008 01:28 AM   [ Ignore ]   [ # 18 ]  
Summer Student
Total Posts:  14
Joined  05-21-2008

Work like a charm. Thank YOU.

Profile
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64938 Total Logged-in Users: 56
Total Topics: 81909 Total Anonymous Users: 44
Total Replies: 440314 Total Guests: 296
Total Posts: 522223    
Members ( View Memberlist )