the following error is returned when I go to "http://www.mydomain.com/audio/download" without any argument:
* warning: Invalid argument supplied for foreach() in /home/mydomain/modules/node.module on line 359.
* warning: implode() [function.implode]: Bad arguments. in /home/mydomain/modules/node.module on line 363.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 query: SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.moderate, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE in /home/mydomain/includes/database.mysql.inc on line 121.
the expected behaviour would be returning "404 page not found". the included patch fixes this bug.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | audio.module.patch_1.txt | 1.05 KB | luperry |
| audio.module.patch_0.txt | 687 bytes | luperry |
Comments
Comment #1
drewish commentedthat looks like a good patch, i want to check that it and play work the same way.
one side note, for example URLs you should use example.com. see RFC2606 for more.
Comment #2
luperry commentedit seems "http://www.example.com/audio/play" has the same issue. here is another patch.
and thanks for the tip. :)
Comment #3
drewish commentedthanks, i've committed this to the 4.7 branch.
Comment #4
(not verified) commented