- 2011-09-01: Building an Unfuddle to Drupal Casetracker import module using Migrate
- 2011-08-28: Back from DrupalCon London and its WSCCI code sprint. Wow.
- 2010-12-21: Madame Figaro brand new site by OSInet and others
- 2010-08-16: France.FR is back online with OSInet and Typhon
- 2010-06-15: the new http://www.franceculture.com/, which OSInet helped reach its performance goals, is now online
- 2010-06-13: the OSInet Features Server is live
- 2009-11-29: mongodb_watchdog module created by dereine, ported to D7 by me in about half an hour, and migrated in a larger MongoDB project by damz before the hour ended. Wow...
- 2009-02-03: the new Drupal-based site for the golden jubilee of the french "Ministère de la Culture", which OSInet helped build, is now online
Pasting TEXT from browsers - sort of
Are you aware of what you're pasting from a browser's rendition of a page ?
I just had this idea when writing the post about Drupal and XML-RPC about what browsers actually copy from web pages...
In the "A word of warning" section, you'll find a paragraph like this:
This means that you must at all costs include security checks in your new server module if you want it to access any data, otherwise you're ready to be exploited.
OK ? Now select part of this sentence in the paragraph above, in your browser, including the emphasized text. Paste it to a text editor. Don't you notice something strange ?
No ? really ? Now paste it to a word processor, lke OOo, WP, or MS Word. Compare.
OK then, why does the word "MUST" appear as "must" in the text you just pasted, instead of "MUST" in the browser and word processor ?
If you answered CSS, you're right, of course. Prior to the CSS being applied,
the text is written in lowercase, and the inline stylesheet applies a
text-transform: uppercase formatting. Which means the contents
of the clipboard as plain text, which you obtain in a texte editor,
is the original, unadulterated, lowercase text, while the contents of
the clipboard as rich text, includes the lower-case text,
plus the CSS transformation to uppercase.
This can be evidenced by going for Format/Character in MS Word with the cursor within the MUST word, for instance: you'll notice an uppercase transformation is applied and, if you remove it, the lowercase text reappears.
All very logical, but maybe unexpected.





Paste / special