You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.
Last version. I was download updatef files and run in my localhost server.
This code is faulty: if (!isset($_GET['fromfile']) || !isset($_GET['auction_id']) || !is_numeric($auction_id)) { ErrorPNG($ERR_716); exit; } elseif (!file_exists($_GET['fromfile']) && !fopen($_GET['fromfile'], 'r')) { ErrorPNG($ERR_716); exit; }
on the 1.2.2.2 this problem is caused because it is only checking with the filename and it dose not have the path. if (!isset($_GET['fromfile']) || !isset($_GET['auction_id']) || !is_numeric($auction_id)) { ErrorPNG($ERR_716); exit; } elseif (!file_exists($_GET['fromfile']) && !fopen($_GET['fromfile'], 'r')) { ErrorPNG($ERR_716)
you have to
bring this code up if ($fromfile != '') { // clean fromfile $fromfile = basename($fromfile); // build file path $file_path = UPLOAD_FOLDER . $auction_id . '/' . $fromfile; } else { // if empty filename just show default image $file_path = MAIN_PATH . 'images/email_alerts/default_item_img.jpg'; }
and put it to around line 20
and change $fromfile to $file_path in the if statement mentioned
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: