Skip to content

postgresql syntax error, can not install nextcloud [resolved] #1260

@jerome-diver

Description

@jerome-diver

nextcloud verison 10.0.0-1

go inside:
lib/private/Setup/PostgreSQL.php
then change at line 146:
CREATEDB WITH PASSWORD
by
WITH CREATEDB PASSWORD

then error syntax 7 for SQL request is now fixed.

Also, the way to pass variable to Database is unsafe and full open to SQL injection attacks. it is a serious secure problem. you should improve this code by use PDO API for postgresql and function for "bind" variables.
Also, this addslashes() is not good.
actually, nextcloud is unsafe.

having fun.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions