Announcement

Collapse
No announcement yet.

10.0.3 php issue stripping out forward slashes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    10.0.3 php issue stripping out forward slashes

    Just upgraded a site from v10.0.2 to 10.0.3 and spent ages trying to find out why some of my pages that run php scripts on the server have stopped working.

    It appears that v10.0.3 is stripping out some of my code.

    I have this database connection which used to work fine.:
    PHP Code:
    require_once ('../../../mysql_connect.php'); 
    If I echo this
    PHP Code:
    <?php echo "require_once ('../../../mysql_connect.php')";?>
    the following is displayed:
    require_once ('mysql_connect.php')
    so my path information has been stripped out.

    What have you done Actinic?

    Anybody got a solution or workaround to this?
    Regards
    David

    #2
    Try obfuscating that .php so Actinic doesn't munge it:
    Code:
    <?php $lnk = '../../../mysql_connect' . '.' . 'php';echo "require_once ($lnk)";?>
    Or:
    Code:
    <?php echo "require_once ('../../../mysql_connect" . "." . "php')";?>
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Cheers Norman - that works fine. Any idea on what has changed?
      Regards
      David

      Comment


        #4
        Not completely sure but there were requests for Actinic to treat embedded .php file names the same as .js, .css, etc and automatically upload them (into acatalog and sorting out their path names so they are valid there).

        Looks like it has the unwelcome side-effect of detecting file names that you don't want altered.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment

        Working...
        X