SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/usr/share/mantis/www/core.php' line 264
MantisBT - Endian Firewall | |||||||||||||||
View Issue Details | |||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||
0002380 | Endian Firewall | Other Scripts | public | 2009-11-05 10:36 | 2010-11-22 12:04 | ||||||||||
Reporter | arcanos | ||||||||||||||
Assigned To | simon-endian | ||||||||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||||||||
Status | closed | Resolution | fixed | ||||||||||||
Platform | OS | OS Version | |||||||||||||
Product Version | 2.3 | ||||||||||||||
Target Version | Fixed in Version | 2.3.1 | |||||||||||||
Customer Importance | |||||||||||||||
Customer Occurrences | |||||||||||||||
Queue | |||||||||||||||
Summary | 0002380: DHCP server don't start if you have a paratemer in "Custom Configuration Lines" that has double quotes (") | ||||||||||||||
Description | If "Custom configuration lines" in dhcpserver has a parameter with double quotes, dhcp server start fails. I was trying to add this option: option tftp-server-name "192.168.1.23"; ... but when a click save all, dhcp server start fails. Entering in configuration files, I've found the problem. When efw save "Custom configuration lines" textarea data, in configuration file (/var/efw/dhcp/custom.tpl) is saves: option tftp-server-name "192.168.1.23"; ... instead of... option tftp-server-name "192.168.1.23"; ... so dhcpserver don't understand the line and can't start. | ||||||||||||||
Steps To Reproduce | |||||||||||||||
Additional Information | I've been analyzing /home/httpd/cgi-bin/dhcp.cgi and I've been unable to find where the hell it makes the conversion from " to " (maybe in the POST data). What I've done to solve it is to make a string substitution before data is written to the file, changing this (in /home/httpd/cgi-bin/dhcp.cgi)... $dhcpsettings{'CUSTOM_GLOBAL'} =~ s/\r//; # LINE 472 write_file($custom_global_file, $dhcpsettings{'CUSTOM_GLOBAL'}); $custom_global=$dhcpsettings{'CUSTOM_GLOBAL'}; $dhcpsettings{'CUSTOM_GLOBAL'} = unset; &writehash("${swroot}/dhcp/settings", \%dhcpsettings); &buildconf; ...for this... $dhcpsettings{'CUSTOM_GLOBAL'} =~ s/\r//; # LINE 472 $dhcpsettings{'CUSTOM_GLOBAL'} =~ s/\"\;/\"/g; # This is the line that substitute " for ", so configuration file gets the right data. write_file($custom_global_file, $dhcpsettings{'CUSTOM_GLOBAL'}); $custom_global=$dhcpsettings{'CUSTOM_GLOBAL'}; $dhcpsettings{'CUSTOM_GLOBAL'} = unset; &writehash("${swroot}/dhcp/settings", \%dhcpsettings); &buildconf; It works, but I'm not sure if this is the best solution. I think it should be better if there's a way to avoid that original data of "Custom configuration lines" textarea was changed for html entities. In 2.2. version this didn't happen, and I've been compairing dhcp.cgi files of both version, but I can't find the issue. | ||||||||||||||
Tags | No tags attached. | ||||||||||||||
Relationships |
| ||||||||||||||
Attached Files | |||||||||||||||
Issue History | |||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||
2009-11-05 10:36 | arcanos | New Issue | |||||||||||||
2009-11-05 11:16 | arcanos | Note Added: 0003245 | |||||||||||||
2009-11-05 11:19 | arcanos | Note Added: 0003246 | |||||||||||||
2009-11-05 11:20 | arcanos | Note Added: 0003247 | |||||||||||||
2009-11-05 11:22 | simon-endian | Relationship added | duplicate of 0002314 | ||||||||||||
2009-11-05 11:22 | simon-endian | Relationship added | duplicate of 0002190 | ||||||||||||
2009-11-05 11:24 | simon-endian | Note Added: 0003249 | |||||||||||||
2009-11-05 11:25 | simon-endian | Status | new => resolved | ||||||||||||
2009-11-05 11:25 | simon-endian | Fixed in Version | => 2.3.1 | ||||||||||||
2009-11-05 11:25 | simon-endian | Resolution | open => fixed | ||||||||||||
2009-11-05 11:25 | simon-endian | Assigned To | => simon-endian | ||||||||||||
2010-11-22 12:04 | peter-endian | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|