php5.0.5 strips my css..?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kyndig

    php5.0.5 strips my css..?

    This is 'weird'. I'm trying to port my project to php5 so I can get
    tidy support in php [ unless someone knows of a better method for
    stripping out in-line javascript: onmouseover, onmouseout, etc from
    user posts ..not interested in bbtag style usage ], and its stripping
    out my CSS _after_ I do a page reload and each page after that. The
    first page visit once the webserver is started outputs correctly. Every
    page visit after that strips my css. *boggle*

    restart webserver and visit page:
    Example from the source of one of my pages:

    restart webserver and visit page:
    =============== =============== =============== ===============
    <link rel="SHORTCUT ICON" href="/favicon.ico" />
    <style type="text/css"><!--
    BODY {

    font-size: 13px;
    }

    TD{

    font-size: 13px;
    }

    ..bigtitle{
    font-size: 105%;
    font-weight: bold;
    }

    hit reload:
    =============== ==========
    <link rel="SHORTCUT ICON" href="/favicon.ico" />
    <style type="text/css"><!--
    BODY

    TD

    ..bigtitle

    ..smallfont

    =============== ===========

    All my: { data.... } is gone..??

    I recompiled php5 without tidy, have changed inumerous settings in
    php.ini trying to figure out what the cause is. Here is my configure;
    any help is greatly appreciated:
    =============== =====configured with =============== ==
    Configure Command './configure' '--with-apxs2' '--with-mysql=/usr'
    '--enable-sockets' '--enable-gd-native-ttf' '--with-gd' '--with-ttf'
    '--with-jpeg-dir' '--with-png-dir' '--with-freetype-dir'
    '--with-zlib-dir' '--with-kerberos' '--with-imap-ssl' '-with-openssl'
    '--with-xmlrpc' '--enable-inline-optimization' '--disable-debug'
    '--enable-exif' '--with-imap'

  • Kyndig

    #2
    Re: php5.0.5 strips my css..?

    Just an FYI. I found the problem. I was using an outdated version of
    phplib's Template class. I just updated it and things are running
    peachy...

    Kyndig

    Comment

    • Bugz

      #3
      Re: php5.0.5 strips my css..?

      You could just rule out the things you dont want with regxps...
      it's probably quicker and more dynamic

      Comment

      Working...