php-src/win32
Calvin Buckley 2920a26636
Quote when adding to connection string in (PDO_)ODBC
Because the UID= and PWD= values are appended to the SQLDriverConnect
case when credentials are passed, we have to append them to the string
in case users are relying on this behaviour. However, they must be
quoted, or the arguments will be invalid (or possibly more injected).
This means users had to quote arguments or append credentials to the raw
connection string themselves.

It seems that ODBC quoting rules are consistent enough (and that
Microsoft trusts them enough to encode into the .NET BCL) that we can
actually check if the string is already quoted (in case a user is
already quoting because of this not being fixed), and if not, apply the
appropriate ODBC quoting rules.

This is because the code exists in main/, and are shared between
both ODBC extensions, so it doesn't make sense for it to only exist
in one or the other. There may be a better spot for it.

Closes GH-8307.
2022-05-27 16:56:44 +02:00
..
build Quote when adding to connection string in (PDO_)ODBC 2022-05-27 16:56:44 +02:00
codepage.c Fixed some spaces used instead of tabs 2021-06-29 11:30:26 +02:00
codepage.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
console.c Fixed some spaces used instead of tabs 2021-06-29 11:30:26 +02:00
console.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
cp_enc_map_gen.c Remove local variables 2019-02-03 21:03:00 +01:00
cp_enc_map.c Trailing whitespaces 2018-01-03 14:38:00 +01:00
dllmain.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
fnmatch.c Remove local variables 2019-02-03 21:03:00 +01:00
fnmatch.h Remove local variables 2019-02-03 21:03:00 +01:00
ftok.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
getrusage.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
getrusage.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
glob.c Drop remaining usage of u_char in favour of standard C99 uint8_t (#8611) 2022-05-23 21:57:31 +01:00
glob.h Remove local variables 2019-02-03 21:03:00 +01:00
globals.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
inet.c Fixed some spaces used instead of tabs 2021-06-29 11:30:26 +02:00
inet.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
ioutil.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
ioutil.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
ipc.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
nice.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
nice.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
param.h Remove local variables 2019-02-03 21:03:00 +01:00
php_registry.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_win32_globals.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
readdir.c Remove all *_EXTERN_C() in C source files (#7054) 2021-05-27 15:52:54 +08:00
readdir.h Fix #36365: scandir duplicates file name at every 65535th file 2020-04-24 09:47:56 +02:00
registry.c Use more compact representation for packed arrays. 2021-11-03 15:18:26 +03:00
select.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
select.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
sendmail.c Update bug tracker links 2022-05-12 14:55:11 +02:00
sendmail.h Constify char * arguments of APIs 2020-06-08 10:38:45 +02:00
signal.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
signal.h Fix TS build, ref #77377 2019-02-08 18:42:48 -08:00
sockets.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
sockets.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
syslog.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
time.c Remove local variables 2019-02-03 21:03:00 +01:00
time.h Remove local variables 2019-02-03 21:03:00 +01:00
unistd.h Remove local variables 2019-02-03 21:03:00 +01:00
winutil.c VS 17 == MSVC v143 == Visual Studio 2022 == cl 19.3x 2022-01-08 20:02:28 +01:00
winutil.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
wsyslog.c Merge branch 'PHP-7.3' into PHP-7.4 2019-07-11 13:11:08 +02:00