logo       

[bug] Wrong link: & => &: msg#00966

php.drupal.devel

Subject: [bug] Wrong link: & => &

Project: Drupal
Version: 4.3.2
Component: poll.module
Category: bug reports
Priority: normal
Assigned to: Anonymous
Reported by: marek
Updated by: Steven
-Status: active
+Status: fixed

Fixed in 4.3.

Steven



Previous comments:
------------------------------------------------------------------------

January 10, 2004 - 21:27 : marek

Line 216 in poll.module:
[?php
$url = request_uri() . (strstr(request_uri(), "?") ? "&" : "?")
."pollresults[$node->nid]=1";
?]

should be:
[?php
$url = request_uri() . (strstr(request_uri(), "?") ? "&" : "?")
."pollresults[$node->nid]=1";
?]

because later htmlentities is used which converts & to & as
necessery.

------------------------------------------------------------------------

January 10, 2004 - 23:21 : marek

Also request_uri() (lines 206, 213 and 216) returns uri that is
converted htmlspecialchars, but then the whole url is encoded with
htmlentities() again.
--
View: http://drupal.org/node/view/5067
Edit: http://drupal.org/project/comments/add/5067





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise