Skip to content

Commit

Permalink
Fixed bug #50323 (Allow use of ; in values via ;; in PDO DSN).
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Alshanetsky committed Dec 6, 2009
1 parent be06106 commit c21c2da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ PHP NEWS

- Fixed bug #50345 (nanosleep not detected properly on some solaris versions).
(Jani)
- Fixed bug #50323 (Allow use of ; in values via ;; in PDO DSN). (Ilia)
- Fixed bug #50266 (conflicting types for llabs). (Jani)
- Fixed bug #50168 (FastCGI fails with wrong error on HEAD request to
non-existent file). (Dmitry)
Expand Down
2 changes: 1 addition & 1 deletion ext/pdo/pdo.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ PDO_API int php_pdo_parse_data_source(const char *data_source,
semi = i++;
break;
}
if (data_source[i] == ';') {
if (data_source[i] == ';' && ((i + 1 >= data_source_len) || data_source[i+1] != ';')) {
semi = i++;
break;
}
Expand Down

0 comments on commit c21c2da

Please sign in to comment.