Title: Adding escapes when saving
Last modified: May 18, 2021

---

# Adding escapes when saving

 *  [easysolutions](https://wordpress.org/support/users/easysolutions/)
 * (@easysolutions)
 * [5 years ago](https://wordpress.org/support/topic/adding-escapes-when-saving/)
 * When saving SQL commands in reporting, but probably also with other changes, 
   such as in config.php, a backslash is set.
    For example: select * from tng_people
   where deathdate=**‘Y’** becomes select * from tng_people where deathdate=**\’
   Y\’** The error only occurs when the change is made via the WordPress URL ([https://<domain>/genealogy/admin](https://<domain>/genealogy/admin)),
   not with [https://<domain>/tng-original-path/admin](https://<domain>/tng-original-path/admin).
   As a workaround, one can use the original path, but since it is unclear with 
   which actions the error has an effect, a solution would be preferable.

Viewing 1 replies (of 1 total)

 *  Plugin Author [theKiwi](https://wordpress.org/support/users/thekiwi/)
 * (@thekiwi)
 * [5 years ago](https://wordpress.org/support/topic/adding-escapes-when-saving/#post-14455203)
 * Hi
 * I have this in my site’s .htaccess file – it forces any request for an Admin 
   page to open outside of the WordPress environment
 * # To get TNG Admin pages to open in /tng/ not in /Genealogy/
    RewriteEngine On
   ReWriteRule ^genealogy/admin(.*)$ tng/admin$1 [R,L]
 * I was never able to figure out how to stop the errors like you’re reporting and
   others that I encountered, and so forcing the Admin to open outside of WordPress
   seemed like the easiest fix.
 * Hope this helps
 * Roger

Viewing 1 replies (of 1 total)

The topic ‘Adding escapes when saving’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/tng-wordpress-plugin.svg)
 * [TNG Wordpress Integration](https://wordpress.org/plugins/tng-wordpress-plugin/)
 * [Support Threads](https://wordpress.org/support/plugin/tng-wordpress-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/tng-wordpress-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tng-wordpress-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tng-wordpress-plugin/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [theKiwi](https://wordpress.org/support/users/thekiwi/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/adding-escapes-when-saving/#post-14455203)
 * Status: not resolved