Closed (fixed)
Project:
Web Links
Version:
5.x-1.8
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
14 May 2007 at 13:44 UTC
Updated:
23 Jun 2008 at 23:32 UTC
Jump to comment: Most recent file
Adding a new Web Link or modifying an existing one causes the URL to disappear from the weblinks table.
This is caused by an issue in the db_query calls in the weblinks_insert and weblinks_update functions, the url-string is surrounded by double-quotes (") which works in MySQL, but has another meaning in Postgresql. Search-and-replacing "%s" by \'%s\' in weblinks.module fixes the problem, but I'm currently not in a position to create an actual patch to HEAD for this - computer-troubles, don't ask :-(
If someone could fix this, I would be grateful.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | weblinks_psql.patch | 2.9 KB | roderik |
| #2 | weblinks.module_postgresql.patch | 1.94 KB | roderik |
Comments
Comment #1
ideaoforder commentedI will work this into the next revision. Unfortunately, I don't have access to or experience with Postgres, so I haven't tested it. Thanks for the feedback!
Comment #2
roderikI rolled the patch as discussed in the main message (since I needed it myself). It works on PostgreSQL now.
Can someone test (insert a weblink) on mysql, just to be sure, and then commit it?
Thanks!
Comment #3
roderik...or don't... but then just commit the patch.
This updated patch fixes a PostgreSQL issue in the v1.8 update script, too.
Comment #4
bdragon commentedModified patch committed on DRUPAL-5 and HEAD.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.