Merge remote-tracking branch 'origin/devel' into devel

This commit is contained in:
Gina Häußge 2015-09-09 16:13:59 +02:00
commit ff956ca4c4
5 changed files with 6 additions and 2 deletions

View file

@ -53,6 +53,7 @@ date of first contribution):
* [Andrew Erickson](https://github.com/aerickson)
* [Nicanor Romero Venier](https://github.com/nicanor-romero)
* [Thomas Hou](https://github.com/masterhou)
* [Mark Bastiaans](https://github.com/markbastiaans)
OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by
[Daid Braam](https://github.com/daid). Parts of its communication layer and

View file

@ -47,6 +47,8 @@
* It's not possible anymore to select files that are not machinecode files (e.g.
GCODE) for printing on the file API.
* Changes to a user's personal settings via the UI now propagate across sessions.
* [#1047](https://github.com/foosel/OctoPrint/issues/1047) - Fixed 90 degree
webcam rotation for iOS Safari.
## 1.2.6 (2015-09-02)

View file

@ -1072,7 +1072,7 @@ class Settings(object):
def saveScript(self, script_type, name, script):
script_folder = self.getBaseFolder("scripts")
filename = os.path.realpath(os.path.join(script_folder, script_type, name))
if not filename.startswith(script_folder):
if not filename.startswith(os.path.realpath(script_folder)):
# oops, jail break, that shouldn't happen
raise ValueError("Invalid script path to save to: {filename} (from {script_type}:{name})".format(**locals()))

View file

@ -585,7 +585,7 @@ class SlicingManager(object):
name = self._sanitize(name)
path = os.path.join(self.get_slicer_profile_path(slicer), "{name}.profile".format(name=name))
if not os.path.realpath(path).startswith(self._profile_path):
if not os.path.realpath(path).startswith(os.path.realpath(self._profile_path)):
raise IOError("Path to profile {name} tried to break out of allows sub path".format(**locals()))
if must_exist and not (os.path.exists(path) and os.path.isfile(path)):
raise UnknownProfile(slicer, name)

View file

@ -914,6 +914,7 @@ textarea.block {
}
.rotate90 {
-webkit-transform: rotate(-90deg);
transform: rotate(-90deg);
}