follow us on google+ follow us feedburner

FORUM
Please use the search function and/or read the FAQ first.

small home screen add alias fix



Posted by: bat Slavi
February 25, 2013 05:55PM
Hi,

When adding alias, the scripts checks if alias name contains the name of any of the subdirectories in www, so if you have directory named c you won't be able to add any alias containing 'c'. The fix is trivial.
alias.inc.php:78
- if (stristr($_POST['alias_name'], $value) != FALSE) {
+ if (strcasecmp($_POST['alias_name'], $value) == 0) {

Cheers,
Slavi
Options: ReplyQuote


Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.