Browse Source

Prevent XSS vulnerabilities in special_response

poesty 1 year ago
parent
commit
fee29b617b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      engines/google/text.php

+ 1 - 1
engines/google/text.php

@@ -96,7 +96,7 @@
             }
             echo $response;
             if ($source)
-                echo "<a href=\"$source\" target=\"_blank\">$source</a>";
+                echo "<a href=\"$source\" target=\"_blank\">" . htmlspecialchars($source) . "</a>";
             echo "</p>";
 
             array_shift($results);