Title: [Plugin: PostgreSQL for WordPress (PG4WP)] backslashes cannot be handled properly
Last modified: August 20, 2016

---

# [Plugin: PostgreSQL for WordPress (PG4WP)] backslashes cannot be handled properly

 *  [leiming](https://wordpress.org/support/users/leiming/)
 * (@leiming)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-postgresql-for-wordpress-pg4wp-backslashes-cannot-be-handled-properly/)
 * 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/](http://wordpress.org/extend/plugins/postgresql-for-wordpress/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [netllama](https://wordpress.org/support/users/netllama/)
 * (@netllama)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-postgresql-for-wordpress-pg4wp-backslashes-cannot-be-handled-properly/#post-3108655)
 * Same problem here for me with 3.4.2 + pg4wp 1.3.0 + postgresql 9.1.6.
 * [@leiming](https://wordpress.org/support/users/leiming/) any side effects from
   your fix?
 *  Thread Starter [leiming](https://wordpress.org/support/users/leiming/)
 * (@leiming)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-postgresql-for-wordpress-pg4wp-backslashes-cannot-be-handled-properly/#post-3108656)
 * [@netllama](https://wordpress.org/support/users/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”.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: PostgreSQL for WordPress (PG4WP)] backslashes cannot be handled
properly’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/postgresql-for-wordpress.svg)
 * [PostgreSQL for WordPress (PG4WP)](https://wordpress.org/plugins/postgresql-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/postgresql-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/postgresql-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/postgresql-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/postgresql-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/postgresql-for-wordpress/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [leiming](https://wordpress.org/support/users/leiming/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-postgresql-for-wordpress-pg4wp-backslashes-cannot-be-handled-properly/#post-3108656)
 * Status: not resolved