Tags: xerc/minify
Tags
Fix propertyNotation I originally executed this on content where string had not yet been replaced. Because this could cause false positives and match content inside strings, I switched it to be executed after strings had been extracted. However, this means those array key texts were also replaced, by something that always looks like a valid variable. I've now moved that check to match the extracted value, which we'll be replacing.
Don't assume paths are set Both from and/or to can be nothing (when fed plain content instead of reading from a file, or when just returning content instead of writing to new file) In those cases, realpath() wouldn't make sense and would just return the `pwd`, converting paths relative to whatever PHP script is running.