exec/system/popen access required by cck_address_get_all_locales

cecinemapasderange - September 24, 2008 - 18:56
Project:Address field for CCK
Version:5.x-2.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I'm running on a server that doesn't allow calls to exec, system or popen. Although I've got a lot of modules installed, this is the only one that seems to need access to any of that functionality - Drupal 5.9 runs quite well without it. It would be great if it could be recoded so as to avoid having to call one of these functions. the function that makes the call is called cck_address_get_all_locales; it's located in the file cck_address.module, at line 1019.

the currently-activated code is:

exec('locale -a', $output);
return $output;

there's also a commented-out version that uses system, and a patch listed that uses popen. none of these work on systems where access to those functions is blocked.

Thanks!

 
 

Drupal is a registered trademark of Dries Buytaert.