Permalink
Browse files

удален не нужный htmlspecialchars. данные обрабатывабются с помощью r…

…awurlencode
  • Loading branch information...
1 parent 181c44f commit af8d856cc899d946b41e4609ec5c31f4e2d30300 @Gemorroj committed Apr 8, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 Xbb/Tags/Google.php
View
@@ -28,8 +28,7 @@ class Xbb_Tags_Google extends bbcode
public function get_html($tree = null)
{
- //TODO:нужен ли htmlspecialchars?
- $attr = htmlspecialchars(rawurlencode($this -> attrib['google']));
+ $attr = rawurlencode($this -> attrib['google']);
$attr = ' href="http://www.google.com/search?q=' . $attr . '"';
$title = isset($this -> attrib['title']) ? $this -> attrib['title'] : '';
if ($title) { $attr .= ' title="' . htmlspecialchars($title) . '"'; }

0 comments on commit af8d856

Please sign in to comment.