See the Mailing lists or Drupal Issue queue. There are also various working groups on groups.drupal.org

bad label in most recent poll block

Greetings!

4.7 Beta2

First off I must say that I have been impressed with Drupal. You have achieved a combination of power and ease of use that is not easy to do. As a result I recently went beyond simply using default themes in 4.6 for my blog and started looking into what it would take to upgrade to 4.7 and at the same time developing my own theme. Still Impressed!

truncate_utf8 dangerous

function truncate_utf8($string, $len, $wordsafe) is essentially this:

while (ord($string[--$len]) < 0xC0) {};

This is dangerous because crafted $string may cause infinite loop.
Also, the semicolon after { } is superfluous ;-)

The last four lines of this function may be rewritten:

while ((ord($string[$len]) & 0xC0) == 0x80 && $len > 0) { $len--; }
return substr($string, 0, $len);

This should be safe and also correct.

A more elaborate version I use:

Simple XML output

Could anyone please tell me if / when there is/will be an 'xml output' theme engine for drupal?

My current site design is based on a standard xml feed (not rss) which is translated by xslt to the final output for the browser.
I'd like to use drupal instead of my self-written (more or less crappy) cms, but I'm really looking for a way to output all page/nodedata as xml so i can use the current xslt sheets to transform (with a few modifications) the xml to the same design.

Does anyone know if, and if so how, I can get drupal to output XML instead of a 'themed' output?

MySQL 4.1.15 okay?

This may be an obvious question, but I ask as Site5, on which we (and many other Drupallers) have a number of sites, has just notified us of scheduled maintenance:

During the aforementioned maintenance window, Site5 will be recompiling Apache (keeping the same version), upgrading PHP to 4.4.1 & upgrading MySQL to 4.1.15.

Error found on drupal web site

I was searching for the drupal function get_included_files and when I clicked on the link to get information on this functino I got the following error:

warning: array_key_exists(): The second argument should be either an array or an object in /home/www/drupaldocs.org/modules/api/api.module on line 737.

warning: array_key_exists(): The second argument should be either an array or an object in /home/www/drupaldocs.org/modules/api/api.module on line 740

Error with Drupal 4.6.4/4.6.5 and PHP 5.1

After upgrading my installation from Drupal 4.6.3 to 4.6.4, the upload module has been acting flaky. I can attatch Jpegs, but png's won't attach. Anything that doesn't show inline, like a movie clip, seems to have .txt appended to the end of the file name. I upgraded my apache and php to current, and it doesn't seem to help any.

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Drupal core