forked from extern/egroupware
replace single quote enclosing attribute values with double quotes
This commit is contained in:
parent
6bdf3e2f01
commit
f6471eabb1
@ -64,6 +64,9 @@ function send_template()
|
||||
}
|
||||
elseif(($str = file_get_contents($path)) !== false)
|
||||
{
|
||||
// replace single quote enclosing attribute values with double quotes
|
||||
$str = preg_replace("#([a-z_-]+)='([^']*)'([ />])#i", '$1="$2"$3', $str);
|
||||
|
||||
// fix <menulist...><menupopup type="select-*"/></menulist> --> <select type="select-*" .../>
|
||||
$str = preg_replace('#<menulist([^>]*)>[\r\n\s]*<menupopup([^>]+>)[\r\n\s]*</menulist>#', '<select$1$2', $str);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user