Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DBConsistency checks on MSSQL #23132

Merged
merged 1 commit into from
Feb 24, 2023

Commits on Feb 24, 2023

  1. Fix DBConsistency checks on MSSQL

    Unfortunately xorm's `builder.Select(...).From(...)` does not escape the
    table names. This is mostly not a problem but is a problem with the
    `user` table.
    
    This PR simply escapes the user table. No other uses of `From("user")`
    where found in the codebase so I think this should be all that is
    needed.
    
    Fix go-gitea#23064
    
    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Feb 24, 2023
    Configuration menu
    Copy the full SHA
    dc12135 View commit details
    Browse the repository at this point in the history