Double quotes in apache directives

Discussion in 'Installation/Configuration' started by simonbun, Jan 12, 2007.

  1. simonbun

    simonbun New Member

    Hi,

    I'm trying to use double quotes (") in the extra apache directives, yet they get changed to single quotes. Is there any way to use them?

    I need them in a directive for setting a path for python
    PythonPath "['/var/www/web4'] + sys.path"

    The directive seems to need double quotes. I tried replacing them and leaving them out, but it doesn't work.

    Thanks,
    Simon
     
  2. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    What about escaping the special char's with a \
    Code:
    PythonPath [\'/var/www/web4\'] \+ sys.path
    Or shouldn't the + sign be changed to a = sign?
     
  3. simonbun

    simonbun New Member

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    I dont think that there is code in ISPConfig that changes double quotes to single quotes in the apache directives field. But you may have a look at the isp_isp_web.lib.php file.
     
  5. simonbun

    simonbun New Member

    Hmm thats odd. Every double quote i use in the apache directives get changed to a single quote on saving the form. I couldn't find anything suspicious in that file, till.

    If its not ispconfig, what could be causing that?
     
  6. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    Maybe related to php magic_quotes?:confused:
     
  7. simonbun

    simonbun New Member

    Magic quotes are off, but that shouldn't replace double quotes with single quotes. In fact i've never heard of a setting that does this.

    No-one has seen this kind of behavior before? I'm using the latest stable version of ispconfig by the way.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    I made a mistake. This behaviour is caused by the ISPConfig code. Please try to comment out line numeber 83:

    in the file /home/admispconfig/ispconfig/lib/classes/ispconfig_doc.lib.php
     
  9. simonbun

    simonbun New Member

    Thanks till, that was the culprit indeed. So far i've not run into side-effects, but i'll report back here when/if i do.
     

Share This Page