Install Drupal, get to the form where you specify DB info. Enter a backslash or single quote into username or somewhere else, hit Submit and that formfield will have added backslashes to that entity. Keep hitting Submit and they will multiply. Found this out when working MS SQL support which can use backslashes for DB host.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fix_gpc.patch | 884 bytes | RobRoy |
Comments
Comment #1
RobRoy commentedWe'll also need to keep in mind the proper writing of entities to the $db_url in settings.php since any backslashes (or single quotes for the sake of example, but I don't think these would/should ever be used) actually DO need to be escaped in that string.
Comment #2
RobRoy commentedchx to the rescue.
Fixed a couple nearby comment punctuation.
Comment #3
drummI the fix_gpc_magic() call should go closer to where this is actually needed, rather than including more code on bootstrap and defeating the purpose of bootstrap (including only what code is needed).
Comment #4
RobRoy commentedOkay, someone will have to let me know where that is. I thought the config was only used for the install process, but I guess I was wrong. Where to then, on top of the install.inc? I'm no install expert so let me know. :)
Comment #5
artsiavi commentedComment #6
damien tournoud commented