Development

Changeset 1461

You must first sign up to be able to contribute.

Changeset 1461

Show
Ignore:
Timestamp:
06/16/06 16:05:50 (2 years ago)
Author:
fabien
Message:

fixed strings from view.yml are not escaped (closes #565)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/config/sfViewConfigHandler.class.php

    r1451 r1461  
    226226    foreach ($this->mergeConfigValue('http_metas', $viewName) as $httpequiv => $content) 
    227227    { 
    228       $data[] = sprintf("    \$response->addHttpMeta('%s', '%s', false);", $httpequiv, $content); 
     228      $data[] = sprintf("    \$response->addHttpMeta('%s', '%s', false);", $httpequiv, str_replace('\'', '\\\'', $content)); 
    229229    } 
    230230 
    231231    foreach ($this->mergeConfigValue('metas', $viewName) as $name => $content) 
    232232    { 
    233       $data[] = sprintf("    \$response->addMeta('%s', '%s', false);", $name, $content); 
     233      $data[] = sprintf("    \$response->addMeta('%s', '%s', false);", $name, str_replace('\'', '\\\'', $content)); 
    234234    } 
    235235