Invalid Feedback Submission
Invalid Feedback Submission
When submitting your feedback please start with step 1.
\n"); exit; } /* * Cannot work on unknown problem: */ if (!isset($problem) || $problem == "INVALID") { echo (" Invalid Feedback Submission
Invalid Feedback Submission
You need to select the nature of the problem in step 1.
\n"); exit; } /* * Check if URL really exists and buffer its contents: * * FIXME: Curl is not installed on SF; Filed as Alexandria * Feature Request #537014. * PHP's fopen() supports URLs, but it seems that * curls options for Timeouts and HTTP error handling * are not supported by fopen(). */ $ch = curl_init ($referrer_url); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_setopt ($ch, CURLOPT_FAILONERROR, 1); curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt ($ch, CURLOPT_TIMEOUT, 20); ob_start(); $success = curl_exec ($ch); $page = ob_get_contents(); ob_end_clean(); curl_close ($ch); if (!$success) { echo (" Invalid Feedback Submission
Invalid Feedback Submission

The URL that you entered ($referrer_url)
could not be retrieved.

Make sure the URL is correct and publicly accessible.

Back to step 1

\n"); exit; } /* * Create description from problem code: */ switch($problem) { case "P1": $problem_description="an advertisment was not blocked"; break; case "P2": $problem_description="an innocent image was blocked"; break; case "P3": $problem_description="the whole page was erraneously blocked"; break; case "P4": $problem_description="the page needs popups but they don't work"; break; case "P5": $problem_description="a problem occured"; break; default: $problem_description="AN UNPROCESSABLE PROBLEM OCCURED"; } ?> Privoxy Action List Feedback - Step 2 of 2
Privoxy Action List Feedback - Step 2 of 2
You are about to report that on .

]*?src=[\'"]?(.*?)[\'" >]|i', $page, $matches); $image_urls = array_values(array_unique($matches[1])); $count = count($image_urls); if ($count > 0) { /* * Base URL ends in slash: don't touch. */ if (strpos(strrev($referrer_url), '/') == 0) { $referrer_base = $referrer_url; } /* * Else grab URL up to last slash as base. */ else { $referrer_base = substr($referrer_url, 0, -strpos(strrev($referrer_url), '/')); } /* * Get the protocol + host info for relative links * that start with slash. FIXME: Cut trailing slash off! */ $referrer_host = "http://".strrev(strrchr(strrev(substr($referrer_url, 7)), "/")); /* * Open section in
; Open table: */ echo ("
Choose the images you want blocked from the following list:

\n"); /* * Print one table row for each image found: */ for ($i=0; $i< $count; $i++) { $image_url = $image_urls[$i]; /* * Make image URLs absolute: */ if (strncmp("http://", $image_url, 7)) { if ($image_url{0} == "/") { $image_url = $referrer_host.$image_url; } else { $image_url = $referrer_base.$image_url; } } /* * Print the row(s): */ echo (" \n"); } echo ("
$image_url:
\"banner

If the banner that you saw is not listed above, enter the URL here\n"); } else { echo ("
URL of the advertisment image:\n"); } } ?>
Hint: right-click the image, select "Copy image location" and paste the URL here.

") ?>

URL of the innocent image:
Hint: right-click the image, select "Copy image location" and paste the URL here.
This may not work if the image was blocked by size or if +image-blocker is set to redirect.

") ?>
Severity:

Remarks: (optional)

Your Name: (optional)