Saturday 02 February 2008 by
After quite a while and lots of work from many, many people it’s finally here. Textpattern 4.0.6 is available as always on the download page.
We have fixed no less than six security issues. Because half of those can be used from the public side, updating is strongly recommended.
Updates should be seamless for the vast majority of people, otherwise make sure that all plugins are also updated to their most recent version, especially admin-side plugins. We’ll add entries to the FAQ specifically for 4.0.6 where questions may arise.
Changes in 4.0.6:
- Security (public side):
- safer use of txp_login cookie + nonce (note: users are logged out after upgrading!)
- fixed XSS vulnerability (thanks DSecRG) and input validation in setup script.
- fixed XSS vulnerability and parameter value overflow in comments preview (thanks DSecRG)
- Security (admin side):
- add missing escape in SQL query (admin side)
- fixed local file include vulnerability (publisher only) in textpattern/index.php (thanks DSecRG and Victor)
- escape request method as shown on logs tab (thanks Victor)
- New languages: Croatian, Korean, Português (Brasil), Serbian (Latin + Cyrillic), Turkish and Vietnamese
- New tags:
<txp:if_search_results> </txp:if_search_results><txp:search_term />
- Changed tags:
<txp:thumbnail />allows non-JS links to the full-size image<txp:article_custom />allows comma-separated lists for category, section and author attributes (thanks Manfr
e)<txp:linklist />allows comma-separated list for category attribute<txp:file_download_list />allows comma-separated list for category attribute<txp:recent_articles />allows comma-separated lists for category and section attribute<txp:related_articles />allows comma-separated list for section attribute<txp:search_result_excerpt />allows a custom “break” attribute defaulting to an ellipsis
- Several tags have been deprecated and will be replaced automatically during the upgrade:
<txp:sitename />,<txp:request_uri />,<txp:s />,<txp:c />,<txp:q />,<txp:id />,<txp:pg />(more info) - Added ‘password reset’ functionality (with confirmation email) on the login screen
- Update to jQuery 1.2.2 as a default JavaScript library
- Fix textile list incompatibility with PHP 5.2.4 (and higher)
- Fix http-auth when using lighttpd or (mostly) apache+fcgi
- Fix HTTPS protocol check for ISAPI with IIS
- Fix use of article tags on a sticky article page
- Speed improvements (less SQL queries needed)
- Pages, sections and styles can no longer be accidentally deleted if they are used on other tabs.
- Corrections in the tag builder
- Refrain from showing sticky articles from non-frontpage sections in search results
- Enable separate search section for messy URL mode
- Plugin developers should note that using add_privs() for admin-side plugins is now required (used to be optional for publisher-only plugins) and the included HISTORY.txt contains other useful information.
- Many, many minor improvements, see SVN logs
Further reading:
FAQ-Entries specific to 4.0.6 (will be added when they arise)
Textpattern Contributors (will soon be updated to 4.0.6)
Forum-Thread for the announcement


Stellar! Ultra sound project management.
04 Feb 08
Joe Hastings
I’m new to TXP, how does TXP 4.0.6 compare to Wordpress 2.3.2?
Thanks in advance for any help.
04 Feb 08
Duncan
Duncan: for tha kind of cuestions it is better you visit de forum: forum.textpattern.com/
04 Feb 08
Jorge Hernández Añón
Ohh people you rocks…
05 Feb 08
vik407
This update doesn’t seem to be as big as was the previous one, but nice job anyway! Thank you.
06 Feb 08
Petri
thank you!!
just upgrade, all ok!
06 Feb 08
peppeg
always great stuff from txp, thank you
07 Feb 08
segamega
Thanks…
07 Feb 08
Viking KARWUR
I have been visiting this site for a long time, so i decided to show you my appreciation by making a comment.
Thnaks,
Jim Mirkalami
08 Feb 08
Jim Mirkalami
This is great. A big thanks and congrats to the TXP DEV team!
Forgive me if this is the wrong place for it, but is anyone having troubles when posting from MarsEdit to Textpattern 4.0.6 with Textile formatting being ignored?
11 Feb 08
Terry Evans
Thanks for the great work..
Sheru
18 Feb 08
Sheru
Everything works fine — you’ve done a great job, as allways!
12 Mar 08
goncourt
Wordless…
Just a wonderful product, now a little bit better. Keep the good work going!
12 Mar 08
petrutz
wonderful work..thx michael
26 May 08
michael