Menu

#60 config_allow_src_above_docroot not taking custom value

open
nobody
None
5
2014-09-04
2012-04-13
No

I'm using phpThum as a plugin for MeioUpload behavior on CakePHP2

On phpThumb.config.php i set:

$PHPTHUMB_CONFIG['allow_src_above_phpthumb'] = true;

but then on phpthumb.class.php, method ResolveFilenameToAbsolute it checks:

if (!$this->config_allow_src_above_docroot && ....

that was causing me some troubles, so if just above that check I var_dump($this->config_allow_src_above_docroot), it says it's FALSE.

i set it to true on line 142:
var $config_allow_src_above_docroot = true;

and now it's working.

shouldn't phpthumb be mapping those values overriden in phpThumb.config.php?

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.