projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87ef6be
)
Images.php
author
edward
<edward@roojs.com>
Wed, 2 Dec 2015 08:09:29 +0000
(16:09 +0800)
committer
edward
<edward@roojs.com>
Wed, 2 Dec 2015 08:09:29 +0000
(16:09 +0800)
Images.php
patch
|
blob
|
history
diff --git
a/Images.php
b/Images.php
index
62f917c
..
70d5365
100644
(file)
--- a/
Images.php
+++ b/
Images.php
@@
-152,6
+152,12
@@
class Pman_Core_Images extends Pman
urlencode("image has been removed or deleted."));
}
+
+ if(!$this->hasPerm($img)){
+ header('Location: ' . $this->rootURL . '/Pman/templates/images/file-broken.png?reason=' .
+ urlencode("image has been removed or deleted."));
+ }
+
$this->serve($img);
exit;
}