Skip to content

Commit

Permalink
fix Captcha compatibility with urlOverride
Browse files Browse the repository at this point in the history
  • Loading branch information
maskas committed Oct 9, 2014
1 parent 72a18c1 commit 38ca1f4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Ip/Lib/HnCaptcha/HnCaptcha.php
Expand Up @@ -1043,9 +1043,7 @@ public function get_filename_url($public='')
if ($public === '') {
$public = $this->public_key;
}
$root = ipFile('');
$root = str_replace(array('\\'), array('/'), $root); //HnCaptcha has done this on tempfolder. We need to do this on $root too.
return str_replace($root, '', $this->tempfolder).$public.'.jpg';
return 'file/tmp/'.$public.'.jpg';
}

/** @private **/
Expand Down

0 comments on commit 38ca1f4

Please sign in to comment.