Skip to content

Commit

Permalink
Fix #63 - Fix open_basedir restriction in effect with lame binary pat…
Browse files Browse the repository at this point in the history
…h - must set Securimage::$lame_binary_path = ""; to avoid
  • Loading branch information
dapphp committed May 30, 2020
1 parent 633c520 commit 179182b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion securimage.php
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,7 @@ public static function getCaptchaHtml($options = array(), $parts = Securimage::H

// check for existence and executability of LAME binary
// prefer mp3 over wav by sourcing it first, if available
if (is_executable(Securimage::$lame_binary_path)) {
if (!empty(Securimage::$lame_binary_path) && is_executable(Securimage::$lame_binary_path)) {
$html .= sprintf('<source id="%s_source_mp3" src="%sid=%s&amp;format=mp3" type="audio/mpeg">', $image_id, $play_path, uniqid()) . "\n";
}

Expand Down

0 comments on commit 179182b

Please sign in to comment.