WordPress.org

Ready to get started?Download WordPress

Forums

PostgreSQL for WordPress (PG4WP)
backslashes cannot be handled properly (3 posts)

  1. leiming
    Member
    Posted 1 year ago #

    centos + apache 2.2.3 + 5.3.3 + wordpress 3.4.2 + pg4wp 1.3.0 + postgresql 9.2

    when I post:
    c:\1.mp3
    it becomes
    c:\\1.mp3

    I temporarily solved it by adding
    $sql = str_replace( '\\\\', '\\', $sql);
    in line 473 of driver_pgsql.php, not sure whether there are some side effects

    http://wordpress.org/extend/plugins/postgresql-for-wordpress/

  2. netllama
    Member
    Posted 1 year ago #

    Same problem here for me with 3.4.2 + pg4wp 1.3.0 + postgresql 9.1.6.

    @leiming any side effects from your fix?

  3. leiming
    Member
    Posted 1 year ago #

    @netllama
    I'm not really sure.
    but since it replaces all \ with \\ ,
    then I thought I just rollback it...

    it works for me so far,
    but in fact I didn't write blogs quite often.

    so please regard it "not well-tested".

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.