[Maintain-dev] [JIRA] Commented: (MNT-1435) escaping character problems

Frederic Wenzel (JIRA) jira at osuosl.org
Mon Jun 19 11:58:51 PDT 2006


     [ http://bugs.osuosl.org/browse/MNT-1435?page=comments#action_10985 ]
     
Frederic Wenzel commented on MNT-1435:
--------------------------------------

Looks like you have magic quotes enabled in PHP? If so, don't do that. It will lead to lots of problems like this, not only with Maintain.

> escaping character problems
> ---------------------------
>
>          Key: MNT-1435
>          URL: http://bugs.osuosl.org/browse/MNT-1435
>      Project: Maintain
>         Type: Bug
>     Reporter: Anonymous Bug Reporting
>     Assignee: Michael Clay
>     Priority: Urgent

>
>
> Maintain 2.4.1 Bug Report from lieuallt
> There are several problems with the automatic escaping you're doing in some fields in maintain.  First, if you use an apostrophe, as in:  joe's computer, it is changed to: joe\'s computer.  That's the first time.  The next time you edit it, two more escapes are added:  joe\\\'s computer.  And so on.
> Then, if you use quotes as in:  this is my "test", it is changed to:  this is my \"test\".  However, if you edit that, it changes to just:  this is my \
> I noticed this in the 'other id' field.
> fyi
> 		
> ##########################################
> # Session Information						
> Array
> (
>     [username] => lieuallt
>     [fullname] => 
>     [email] => lieuallt at onid.orst.edu
>     [ui_size] => 10
>     [list_view] => 25
>     [last_seen] => 1149863034
>     [color_template] => orst_generic
>     [host_view] => advanced
>     [is_admin] => 
>     [is_zone_admin] => 1
>     [is_user] => 
>     [is_guest] => 
>     [zones] => 
>     [preferred_zone] => 134
>     [current_zone] => 
>     [debug] => 
>     [view] => 
>     [0] => lieuallt
>     [1] => 
>     [password] => 
>     [2] => ldap
>     [type] => ldap
>     [3] => 134
>     [4] => 10
>     [5] => 25
>     [6] => 1149863034
>     [7] => orst_generic
>     [8] => advanced
>     [9] => 
> )
> Array
> (
>     [id] => 134
>     [name] => zone.engr
>     [description] => College of Engineering
>     [purgeable] => true
>     [comment] => 
>     [email] => 
>     [notify] => 1
>     [object_history] => objecthistory Object
>         (
>             [id] => 
>             [username] => 
>             [object_type] => zone
>             [object_id] => 134
>             [date] => 
>             [comment] => 
>         )
> )
> http://maintain.oregonstate.edu/bug.php
> ##########################################		
> [Created via e-mail received from: lieuallt at onid.orst.edu]

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://bugs.osuosl.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



More information about the Maintain-dev mailing list